mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
In minimal mode, if there was `/[slug].js` with `notFound: true` on the same segment of `_error.js`, `req.url` and `ctx.asPath` were returned as `/[slug]`, since it was re-initialized to the request url. Therefore, don't re-initialize the URL if it is in minimal mode && is the `_error` page. Fixes NEXT-4660 --------- Co-authored-by: JJ Kasper <[email protected]>
17 lines
242 B
TypeScript
17 lines
242 B
TypeScript
export default function Page() {
|
|
return <p>hello world</p>
|
|
}
|
|
|
|
export async function getStaticProps() {
|
|
return {
|
|
notFound: true,
|
|
}
|
|
}
|
|
|
|
export async function getStaticPaths() {
|
|
return {
|
|
paths: [],
|
|
fallback: 'blocking',
|
|
}
|
|
}
|