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

16 lines
292 B
JavaScript

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