404 Status while accessing docs page in static website
ilshm opened this issue · comments
did you ever resolve this? I have found that uncommenting the redirect inside the routeRules in nuxt.config.ts made it so the docs route would actually be found and not throw a 404 in static mode:
routeRules: {
'/api/search.json': { prerender: true },
// '/docs': { redirect: '/docs/getting-started', prerender: true }
},
Will try, thanks.
@ilyabumblebee
To clarify though, simply removing it will just route to /docs, to make this work you need to pretender the /docs/getting-started route
routeRules: {
'/api/search.json': { prerender: true },
'/docs/getting-started': { prerender: true },
'/docs': { redirect: '/docs/getting-started', prerender: true }
},
Works fine now with:
routeRules: {
'/api/search.json': { prerender: true },
'/docs/getting-started': { prerender: true },
'/docs': { redirect: '/docs/getting-started', prerender: true }
}
Thanks!