Skip to content

Commit

Permalink
fix: initialise nitro options
Browse files Browse the repository at this point in the history
resolves #392
  • Loading branch information
danielroe committed Jul 8, 2022
1 parent 6ebdec4 commit bd136fd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/nitro.ts
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,7 @@ export async function setupNitroBridge () {
})

// Prerender all non-dynamic page routes when generating app
nuxt.options.nitro = nuxt.options.nitro || {}
if (!nuxt.options.dev && nuxt.options._generate) {
const routes = new Set<string>()
nuxt.hook('build:extendRoutes', (pages) => {
Expand Down

0 comments on commit bd136fd

Please sign in to comment.