mirror of
https://github.com/actions/configure-pages.git
synced 2026-03-29 17:34:52 +00:00
18 lines
340 B
JavaScript
18 lines
340 B
JavaScript
const getAllDynamicRoute = async function() {
|
|
const routes = await (async () => {
|
|
return ['/posts/hello-world', '/posts/hello-again'];
|
|
})();
|
|
return routes;
|
|
};
|
|
|
|
export default {
|
|
target: 'static',
|
|
router: {base: '/docs/'},
|
|
mode: 'universal',
|
|
generate: {
|
|
async routes () {
|
|
return getAllDynamicRoute();
|
|
}
|
|
}
|
|
};
|