To allow static hosting, we probably need to include the following in the Nuxt config
// Target (https://go.nuxtjs.dev/config-target)
target: 'static',
This allows a Nuxt project to be generated for static hosting. I'm unsure how dynamic routes will cope with this, but having tested on a new plain Nuxt install it somehow handles dynamic routes, e.g. /pages/blog/_slug.vue
This gets away from the nasty 404.html issue and introduces a nice index.html file instead.
To allow static hosting, we probably need to include the following in the Nuxt config
This allows a Nuxt project to be generated for static hosting. I'm unsure how dynamic routes will cope with this, but having tested on a new plain Nuxt install it somehow handles dynamic routes, e.g.
/pages/blog/_slug.vueThis gets away from the nasty
404.htmlissue and introduces a niceindex.htmlfile instead.