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
I verified that the issue exists in the latest Next.js canary release
Provide environment information
Operating System:
Platform: darwin
Arch: x64
Version: Darwin Kernel Version 21.6.0: Mon Aug 22 20:19:52 PDT 2022; root:xnu-8020.140.49~2/RELEASE_ARM64_T6000
Binaries:
Node: 14.19.3
npm: 6.14.17
Yarn: N/A
pnpm: N/A
Relevant packages:
next: 13.0.3
eslint-config-next: 13.0.3
react: 18.2.0
react-dom: 18.2.0
What browser are you using? (if relevant)
Chrome 107.0.5304.110
How are you deploying your application? (if relevant)
No response
Describe the Bug
When I work on my project using next dev seems to work properly all the getServerSideProps functions but if I want to debug the server side using the command NODE_OPTIONS='--inspect' next dev the console show me that it run only the getServerSideProps function of the dynamic route.
It happens also with a fresh project, I report the page folder structure:
-- pages
-- -- _app.tsx
-- -- [slug].tsx
-- -- index.tsx
If there is a serverSideProps in index.tsx and one in [slug].tsx the second one override the one of the page visited.
It happens with Next v13 but I detected the same problem also with the v12.
Expected Behavior
Visiting the page index I want that the correct getServerSideProps function runs.
Link to reproduction - Issues with a link to complete (but minimal) reproduction code will be addressed faster
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.
Verify canary release
Provide environment information
What browser are you using? (if relevant)
Chrome 107.0.5304.110
How are you deploying your application? (if relevant)
No response
Describe the Bug
When I work on my project using
next dev
seems to work properly all the getServerSideProps functions but if I want to debug the server side using the commandNODE_OPTIONS='--inspect' next dev
the console show me that it run only the getServerSideProps function of the dynamic route.It happens also with a fresh project, I report the page folder structure:
-- pages
-- -- _app.tsx
-- -- [slug].tsx
-- -- index.tsx
If there is a serverSideProps in index.tsx and one in [slug].tsx the second one override the one of the page visited.
It happens with Next v13 but I detected the same problem also with the v12.
Expected Behavior
Visiting the page index I want that the correct getServerSideProps function runs.
Link to reproduction - Issues with a link to complete (but minimal) reproduction code will be addressed faster
https://stackblitz.com/edit/vercel-next-js-euqh9s?file=pages/[slug].tsx
To Reproduce
NODE_OPTIONS='--inspect' next dev
The text was updated successfully, but these errors were encountered: