Skip to content

Commit eaf8f18

Browse files
committed
fix: disable prerendering by default on build
resolves #391
1 parent bd136fd commit eaf8f18

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

src/nitro.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,10 @@ export async function setupNitroBridge () {
9292
.map(dir => ({ dir }))
9393
],
9494
prerender: {
95-
crawlLinks: nuxt.options.generate.crawler,
96-
routes: [
97-
...nuxt.options.generate.routes || [],
98-
...nuxt.options.ssr === false ? ['/', '/200', '/404'] : []
99-
]
95+
crawlLinks: nuxt.options._generate ? nuxt.options.generate.crawler : false,
96+
routes: []
97+
.concat(nuxt.options._generate ? ['/', ...nuxt.options.generate.routes] : [])
98+
.concat(nuxt.options.ssr === false ? ['/', '/200', '/404'] : [])
10099
},
101100
externals: {
102101
inline: [

0 commit comments

Comments
 (0)