Nuxt / renders index.vue locally but when deployed via Netlify returns 404
Hi, as the post says I'm having trouble seeing my default page render at
When I run the project locally everything works as expected
I'm using the
My project has
Deployment: https://chirp-shot.netlify.app/
Code is set to private but here's my nuxt config
/ when deployed via NetlifyWhen I run the project locally everything works as expected
I'm using the
Pages directory atm and I made a index.vue componentMy project has
ssr set to false and I'm runnin Nuxt as a SPADeployment: https://chirp-shot.netlify.app/
Code is set to private but here's my nuxt config
Solution
Incase anyone finds this thread in the future
Do your Nuxt pages or index return 404 even though they are working in your local?
If so, did you rename any page files, specifically
Double check that git caught the case change
If git did not catch the case change, when the CI runs
Here's a SO post talking about git filenames and case sensitivity: https://stackoverflow.com/a/24979063
https://stackoverflow.com/a/37470090
Do your Nuxt pages or index return 404 even though they are working in your local?
If so, did you rename any page files, specifically
index.vue, from Page.vue to page.vue at any point?Double check that git caught the case change
If git did not catch the case change, when the CI runs
git pull your page files will still have the old naming, which won't match what you're doing in your NuxtLink to propsgit mv and git mv --force will be your tools to rename and ensure git will pull them back down correctly in Netlify or Cloudflare CIHere's a SO post talking about git filenames and case sensitivity: https://stackoverflow.com/a/24979063
https://stackoverflow.com/a/37470090
Stack Overflow
I am trying to rename a file to have different capitalization from what it had before:
git mv src/collision/b2AABB.js src/collision/B2AABB.js
fatal: destination exists, source=src/collision/b2AABB....
git mv src/collision/b2AABB.js src/collision/B2AABB.js
fatal: destination exists, source=src/collision/b2AABB....
Stack Overflow
One branch (refactoringBranch) had a complete directory restructure. Files were moved chaosly, but the content was preserved.
I tried to merge:
git merge --no-ff -Xrename-threshold=15 -Xpatience -
I tried to merge:
git merge --no-ff -Xrename-threshold=15 -Xpatience -




