-
Notifications
You must be signed in to change notification settings - Fork 29.9k
Open
Labels
bugIssue was opened via the bug report template.Issue was opened via the bug report template.not staleA previously `stale` marked issue that is no longer stale.A previously `stale` marked issue that is no longer stale.
Description
Link to the code that reproduces this issue
https://github.com/akshitkrnagpal/nextjs-custom-errors-bug
To Reproduce
- Create file
[id]/page.tsxin app directory.
const Page = ({ params }: { params: { id: string } }) => {
return <div>Page {params.id}</div>;
};
export default Page;- Visit
/500or/404
Current vs. Expected behavior
Current Behaviour
When running locally
- Visting
/404renders "Page 404".
- Visting
/500renders "Page 500".
When deployed to Vercel
- Visting
/404renders 404 page.
- Visting
/500renders 500 page.
Expected Behaviour
When deployed to Vercel also page should be rendered. (like local)
Verify canary release
- I verified that the issue exists in the latest Next.js canary release
Provide environment information
Operating System:
Platform: darwin
Arch: arm64
Version: Darwin Kernel Version 23.0.0: Thu Aug 17 21:23:05 PDT 2023; root:xnu-10002.1.11~3/RELEASE_ARM64_T6000
Binaries:
Node: 18.16.1
npm: 9.5.1
Yarn: 1.22.19
pnpm: 8.7.5
Relevant Packages:
next: 13.5.3-canary.3
eslint-config-next: N/A
react: 18.2.0
react-dom: 18.2.0
typescript: 5.2.2
Next.js Config:
output: N/AWhich area(s) are affected? (Select all that apply)
App Router
Additional context
I have a deployed version to https://nextjs-custom-errors-bug.vercel.app.
Metadata
Metadata
Assignees
Labels
bugIssue was opened via the bug report template.Issue was opened via the bug report template.not staleA previously `stale` marked issue that is no longer stale.A previously `stale` marked issue that is no longer stale.