mirror of
https://github.com/actions/configure-pages.git
synced 2026-03-30 01:54:51 +00:00
16 lines
286 B
JavaScript
16 lines
286 B
JavaScript
const getAllDynamicRoute = async function () {
|
|
const routes = await (async () => {
|
|
return ['/posts/hello-world', '/posts/hello-again']
|
|
})()
|
|
return routes
|
|
}
|
|
|
|
export default {
|
|
mode: 'universal',
|
|
generate: {
|
|
async routes() {
|
|
return getAllDynamicRoute()
|
|
}
|
|
}
|
|
}
|