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