garrlker
Nuxt / renders index.vue locally but when deployed via Netlify returns 404
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
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
props
git mv
and git mv --force
will be your tools to rename and ensure git will pull them back down correctly in Netlify or Cloudflare CI
Here's a SO post talking about git filenames and case sensitivity: https://stackoverflow.com/a/24979063
https://stackoverflow.com/a/3747009080 replies
Nuxt / renders index.vue locally but when deployed via Netlify returns 404
Can't believe this was it, but glad I figured it out
Crazy bug, not on Nuxt or even Netlify. I'd almost like for Git to send a warning on every push telling me the internal filename isn't my local filename, but I won't bash it too hard
80 replies