Dominik Milacher 0dc24c4db7
Some checks failed
Build and deploy updated apps / Build & deploy (push) Failing after 50s
Extend ux layer and overhaul panoramablick-saalbach.at
2025-11-21 21:17:52 +01:00

20 lines
478 B
TypeScript

import { getConfig, getExpandedRoutes } from './app/utils/content-routes'
export default defineNuxtConfig({
compatibilityDate: '2025-10-25',
$meta: { name: 'content' },
devtools: { enabled: true },
hooks: {
async 'prerender:routes'(context) {
context.routes.clear()
const config = await getConfig()
const routes = await getExpandedRoutes(config)
for (const route of routes) {
context.routes.add(`/${route}`)
}
},
},
})