This commit is contained in:
lesion 2022-05-26 11:10:40 +02:00
parent 0fe3066bf0
commit fac1ee0102
No known key found for this signature in database
GPG key ID: 352918250B012177
2 changed files with 20 additions and 0 deletions

View file

@ -51,8 +51,27 @@ module.exports = {
// Doc: https://axios.nuxtjs.org/usage
'@nuxtjs/axios',
'@nuxtjs/auth',
'@nuxtjs/sitemap'
],
sitemap: {
hostname: config.baseurl,
gzip: true,
exclude: [
'/Admin',
'/settings',
'/export',
'/setup'
],
routes: async () => {
if (config.status === 'READY') {
const Event = require('./server/api/models/event')
const events = await Event.findAll({where: { is_visible: true }})
return events.map(e => `/event/${e.slug}`)
}
}
},
serverMiddleware: ['server/routes'],
/*

View file

@ -31,6 +31,7 @@
"@mdi/js": "^6.6.96",
"@nuxtjs/auth": "^4.9.1",
"@nuxtjs/axios": "^5.13.5",
"@nuxtjs/sitemap": "^2.4.0",
"accept-language": "^3.0.18",
"axios": "^0.27.2",
"bcryptjs": "^2.4.3",