Open Javad9s opened 7 months ago
This is a problem that has been around for a long time. Good to know is, that it doesn't seem to happen when you deploy to Vercel.
Hi. I've ran into the same bug having Next deployed with Docker
Binaries: Node: 20.11.1 npm: N/A Yarn: N/A pnpm: N/A Relevant Packages: next: 14.2.4 // Latest available version is detected (14.2.4). eslint-config-next: 14.1.0 react: 18.2.0 react-dom: 18.2.0 typescript: 5.3.3
There is no problem when the dynamicParams setting is true. However, if the value of dynamicParams is false, a 404 error occurs. Shouldn’t there be no error even when it is false?
Link to the code that reproduces this issue
https://github.com/Javad9s/nextjs-revalidate-breaks-static-params
To Reproduce
npm run build
,npm start
)Revalidate
Current vs. Expected behavior
Current : returns 404 after revalidation Expected : should return Params : 01 again
Provide environment information
Which area(s) are affected? (Select all that apply)
App Router
Which stage(s) are affected? (Select all that apply)
next start (local)
Additional context
Any unexpected revalidation like
revalidatePath("/", "layout")
or revalidating a common cache tag will flush statically generated pages and we have to build the entire application again.