Hi, @henrikhansson. Thanks for taking the time to share your solution.
If someone does what to try the
_redirects solution using Nuxt, the Nuxt documentation says that this file (
netlify.toml) should go into the “static directory”:
I also want to explain why we don’t document this in more detail in the public documentation at Netlify.
Netlify is static site generator (SSG) agnostic - meaning you can use any SSG you like at Netlify. We have no opinion about which SSG you use and we do not try to limit what can be used.
There are also literally about 200 different SSGs that can be used to build sites at Netlify and creating exact instructions for even the top twenty SSGs and then keeping all twenty sets of instructions up to date as those SSGs evolve and grow is a Sisyphean task at best. For this reason, if people have questions about this, we troubleshoot here in the support forums and allow this content to serve as that documentation.
Hopefully, if someone is web searching for “Netlify Nuxt SPA redirects” in the future they will find this forum topic and see both the solutions mentioned here. So, we use public docs for the general case and then the support forums to answer and “How do I do this with <insert SSG name here>?” questions.