Add support for specifying the target generator config file

This commit is contained in:
James M. Greene
2022-08-05 17:31:59 -05:00
parent 404d23c4a6
commit 7c3932ff89
23 changed files with 410 additions and 38 deletions

View File

@@ -0,0 +1,15 @@
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();
}
}
};