We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a05b534 commit 44cada9Copy full SHA for 44cada9
packages/nuxt/src/pages/module.ts
@@ -276,15 +276,11 @@ export default defineNuxtModule({
276
})
277
278
// TODO: inject routes in `200.html` in next nitro upgrade (2.9.7+) via https://github.com/unjs/nitro/pull/2517
279
- if (!nuxt.options.dev && !nuxt.options._prepare) {
+ if (!nuxt.options.dev && !nuxt.options._prepare && nuxt.options.ssr) {
280
nuxt.hook('app:templatesGenerated', (app) => {
281
const nitro = useNitro()
282
if (nitro.options.prerender.crawlLinks) {
283
- for (const page of app.pages!) {
284
- if (page.path && !page.path.includes(':')) {
285
- nitro.options.prerender.routes.push(page.path)
286
- }
287
+ nitro.options.prerender.routes.push('/')
288
}
289
290
0 commit comments