You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// pages/index.tsximporttype{GetServerSideProps}from'next'constPage=()=>{return<p>Hello</p>}exportconstgetServerSideProps: GetServerSideProps=async({ res })=>{res.statusCode=403// res.end() // If specified, the render will be empty// throw new Error()return{props: {}}}exportdefaultPage
This issue has been automatically marked as stale due to two years of inactivity. It will be closed in 7 days unless there’s further input. If you believe this issue is still relevant, please leave a comment or provide updated details. Thank you.
Link to the code that reproduces this issue
https://codesandbox.io/p/sandbox/gracious-bassi-lpmwvf
To Reproduce
yarn build & yarn start
Current vs. Expected behavior
Setting the status should have resulted in
_error.tsx
being rendered. Instead, the HTTP status is set along with the renderingindex.tsx
.Verify canary release
Provide environment information
Operating System: Platform: darwin Arch: arm64 Version: Darwin Kernel Version 23.1.0: Mon Oct 9 21:28:12 PDT 2023; root:xnu-10002.41.9~6/RELEASE_ARM64_T8103 Binaries: Node: 20.9.0 npm: 10.1.0 Yarn: 1.22.19 pnpm: N/A Relevant Packages: next: 14.0.3 eslint-config-next: N/A react: 18.2.0 react-dom: 18.2.0 typescript: 5.2.2 Next.js Config: output: N/A
Which area(s) are affected? (Select all that apply)
Middleware / Edge (API routes, runtime)
Additional context
No response
The text was updated successfully, but these errors were encountered: