Skip to content

Commit

Permalink
fix: Cannot read property 'filter' of null on Zeit
Browse files Browse the repository at this point in the history
  • Loading branch information
adesege committed Jul 1, 2020
1 parent 1a1b277 commit ea35d72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ module.exports = async function module(moduleOptions) {
? path.resolve(nuxtInstance.options.buildDir, path.join('dist', 'sitemap-routes.json'))
: null
const staticRoutes = fs.readJsonSync(jsonStaticRoutesPath, { throws: false })
const globalCache = { staticRoutes }
const globalCache = { staticRoutes: staticRoutes || [] }

// Init static routes
nuxtInstance.extendRoutes((routes) => {
Expand Down

0 comments on commit ea35d72

Please sign in to comment.