generateStaticParams giving 404 error on newly created jobs #65981
Unanswered
codesbyhusnain
asked this question in
App Router
Replies: 1 comment 7 replies
-
Very odd... do you maybe have https://nextjs.org/docs/app/api-reference/file-conventions/route-segment-config#dynamicparams set to false? or is this app being exported? |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am using app router. I have many dynamic routes such as jobs and contracts. I am using generateStaticParams to generate my dynamic routes when I build my project.
It does work for the jobs I already created and routes to them perfectly. However, when I create a new job and try to route to it, it gives me a 404 error.
My code:
Beta Was this translation helpful? Give feedback.
All reactions