I just migrated a Nuxt.js application from Heroku to Netlify. Since Netlify doesn’t allow server side rendering I changed my application to be static. I managed to get the page up and running
Now when I navigate to a tool in the tools list, everything works fine. But when I open the tool in a new tab/window or navigate to that URL directly, I get a 404 error. (The fact that it works when opening in same tab is due to the internal Vue.js navigation routing system because the load the content internally and just change the URL)
Since I haven’t had this problem on Heroku, I guess this might be something with the Netlify tech stack. Do you have any ideas how I can solve this issue? Maybe it is just a missing .htaccess or something?
Yeah, the status code 200 helped. Just for everyones information: I used a netlify.toml file (in repository root) instead of a _redirect file in my dist/ folder so I didn’t have to touch the nuxt generated folder after building.
[[redirects]]
from = "/*"
to = "/index.html"
status = 200