File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -68,6 +68,9 @@ export {}
6868}
6969
7070export function createPagesPromise ( nuxt : Nuxt = useNuxt ( ) ) {
71+ if ( ! nuxt . options . pages ) {
72+ return Promise . resolve ( [ ] )
73+ }
7174 return new Promise < NuxtPage [ ] > ( ( resolve ) => {
7275 nuxt . hooks . hook ( 'modules:done' , ( ) => {
7376 extendPages ( resolve )
Original file line number Diff line number Diff line change @@ -6,14 +6,17 @@ describe('generate', () => {
66 it ( 'basic' , async ( ) => {
77 process . env . NODE_ENV = 'production'
88 process . env . prerender = true
9+ process . env . NITRO_PRESET = 'static'
910 process . env . NUXT_PUBLIC_SITE_URL = 'https://nuxtseo.com'
1011 const { resolve } = createResolver ( import . meta. url )
1112 const rootDir = resolve ( '../../fixtures/chunks' )
1213 const nuxt = await loadNuxt ( {
1314 rootDir,
1415 overrides : {
16+ nitro : {
17+ preset : 'static' ,
18+ } ,
1519 _generate : true ,
16- nitro : { static : true } ,
1720 } ,
1821 } )
1922
You can’t perform that action at this time.
0 commit comments