Having issues with Next causing 404s with Dynamic Routes
Unanswered
Western paper wasp posted this in #help-forum
Western paper waspOP
Hey! I'm facing issues with NextJS giving my app random 404s when trying to generate a dynamic route; my site is for an upcoming anime fighting game and has dynamic routing for each character's page - Their data is stored in a singular JSON file that has all their moves, descriptions, stats, etc, which I pull into a [slug] template; is anyone able to help me diagnose what could be causing this issue?
I've attached my folder structure and have no errors in VSCode or when running a next build. It only happens on production (Hosted, and using cPanel)
I've attached my folder structure and have no errors in VSCode or when running a next build. It only happens on production (Hosted, and using cPanel)
3 Replies
Western paper waspOP
Additionally, here's my
package.json
and repo: https://github.com/adaptajoe/resource-of-souls@Western paper wasp Hey! I'm facing issues with NextJS giving my app random 404s when trying to generate a dynamic route; my site is for an upcoming anime fighting game and has dynamic routing for each character's page - Their data is stored in a singular JSON file that has all their moves, descriptions, stats, etc, which I pull into a [slug] template; is anyone able to help me diagnose what could be causing this issue?
I've attached my folder structure and have no errors in VSCode or when running a next build. It only happens on production (Hosted, and using cPanel)
I just tested your app with the shared repo, but it works fine for me. You can see it yourself here: https://codesandbox.io/p/github/adaptajoe/resource-of-souls/main
@Western paper wasp solved?