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 1a1b277 commit ea35d72Copy full SHA for ea35d72
lib/module.js
@@ -23,7 +23,7 @@ module.exports = async function module(moduleOptions) {
23
? path.resolve(nuxtInstance.options.buildDir, path.join('dist', 'sitemap-routes.json'))
24
: null
25
const staticRoutes = fs.readJsonSync(jsonStaticRoutesPath, { throws: false })
26
- const globalCache = { staticRoutes }
+ const globalCache = { staticRoutes: staticRoutes || [] }
27
28
// Init static routes
29
nuxtInstance.extendRoutes((routes) => {
0 commit comments