mirror of
https://github.com/actions/configure-pages.git
synced 2026-04-03 08:12:24 +00:00
16 lines
294 B
JavaScript
16 lines
294 B
JavaScript
const getAllDynamicRoute = async function() {
|
|
const routes = await (async () => {
|
|
return ['/posts/hello-world', '/posts/hello-again'];
|
|
})();
|
|
return routes;
|
|
};
|
|
|
|
module.exports = {
|
|
mode: 'universal',
|
|
generate: {
|
|
async routes () {
|
|
return getAllDynamicRoute();
|
|
}
|
|
}
|
|
};
|