diff --git a/nuxt.config.js b/nuxt.config.js index 1e7a18f6..35f429d9 100644 --- a/nuxt.config.js +++ b/nuxt.config.js @@ -68,6 +68,8 @@ module.exports = { const Event = require('./server/api/models/event') const events = await Event.findAll({where: { is_visible: true }}) return events.map(e => `/event/${e.slug}`) + } else { + return [] } } },