Files
configure-pages/src/fixtures/nuxt/async.expected.mjs
T

18 lines
336 B
JavaScript
Raw Normal View History

2022-09-16 20:37:18 -05:00
const getAllDynamicRoute = async function () {
const routes = await (async () => {
2022-09-16 20:37:18 -05:00
return ['/posts/hello-world', '/posts/hello-again']
})()
return routes
}
export default {
target: 'static',
router: { base: '/docs/' },
mode: 'universal',
generate: {
2022-09-16 20:37:18 -05:00
async routes() {
return getAllDynamicRoute()
}
}
2022-09-16 20:37:18 -05:00
}