Files
configure-pages/src/fixtures/nuxt/async.cjs
2022-08-05 17:35:23 -05:00

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();
}
}
};