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
How are you deploying your application? (if relevant)
No response
Describe the Bug
When any basePath added in next.config, rewrites for dynamic paths don't work
As fallback: true is used, the first time page loads without props and then the props are passed
Expected Behavior
Without basepath rewrites for dynamic paths work and pages load with proper content from the first time
Link to reproduction - Issues with a link to complete (but minimal) reproduction code will be addressed faster
Pate https://vercel-next-js-hxjczp-xlov6swr--3000.local-credentialless.webcontainer.io/nl/nieuws/some-url in the search input - you will see THIS SHOULD NOT APPEAR and than This should appear. If it was too fast you can check the preview of this page in networks (see screenshot)
Comment basePath in next.config
Restart project
Paste https://vercel-next-js-hxjczp-xlov6swr--3000.local-credentialless.webcontainer.io/nieuws/some-url.
You will see only This should appear on the page. Preview in networks:
The text was updated successfully, but these errors were encountered:
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
Operating System:
Platform: win32
Arch: x64
Version: Windows 10 Pro
Binaries:
Node: 16.16.0
npm: N/A
Yarn: N/A
pnpm: N/A
Relevant packages:
next: 12.3.3
eslint-config-next: 11.1.4
react: 17.0.2
react-dom: 17.0.2
What browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
No response
Describe the Bug
When any
basePath
added innext.config
, rewrites for dynamic paths don't workAs
fallback: true
is used, the first time page loads without props and then the props are passedExpected Behavior
Without
basepath
rewrites for dynamic paths work and pages load with proper content from the first timeLink to reproduction - Issues with a link to complete (but minimal) reproduction code will be addressed faster
https://stackblitz.com/edit/vercel-next-js-hxjczp?file=pages%2Fnews%2F[slug].tsx,next.config.js,pages%2Findex.tsx
To Reproduce
Pate
https://vercel-next-js-hxjczp-xlov6swr--3000.local-credentialless.webcontainer.io/nl/nieuws/some-url
in the search input - you will see THIS SHOULD NOT APPEAR and than This should appear. If it was too fast you can check the preview of this page in networks (see screenshot)basePath
innext.config
https://vercel-next-js-hxjczp-xlov6swr--3000.local-credentialless.webcontainer.io/nieuws/some-url
.You will see only This should appear on the page. Preview in networks:
The text was updated successfully, but these errors were encountered: