2022-08-05 17:31:59 -05:00
|
|
|
const getAllDynamicRoute = async function() {
|
|
|
|
|
const routes = await (async () => {
|
|
|
|
|
return ['/posts/hello-world', '/posts/hello-again'];
|
|
|
|
|
})();
|
|
|
|
|
return routes;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
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: {
|
|
|
|
|
async routes () {
|
|
|
|
|
return getAllDynamicRoute();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|