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

18 lines
336 B
JavaScript
Raw Normal View History

2022-08-05 15:40:25 -05:00
const getAllDynamicRoute = async function () {
2022-07-22 18:04:52 -05:00
const routes = await (async () => {
2022-08-05 15:40:25 -05:00
return ['/posts/hello-world', '/posts/hello-again']
})()
return routes
}
2022-07-22 18:04:52 -05:00
export default {
target: 'static',
2022-08-05 15:40:25 -05:00
router: { base: '/docs/' },
2022-07-22 18:04:52 -05:00
mode: 'universal',
generate: {
2022-08-05 15:40:25 -05:00
async routes() {
return getAllDynamicRoute()
}
2022-07-22 18:04:52 -05:00
}
2022-08-05 15:40:25 -05:00
}