pull/8427/head
Puru Vijay 3 years ago
parent 7990e70560
commit db672cf662

@ -12,12 +12,13 @@ export default {
prerender: { prerender: {
// TODO: REMOVE // TODO: REMOVE
handleMissingId: 'ignore', handleMissingId: 'ignore',
entries: [ entries: ['*', ...tutorial_entries()],
'*',
...get_tutorial_list(get_tutorial_data()).flatMap(({ tutorials }) =>
tutorials.map((tutorial) => /** @type {`/${string}`} */ ('/tutorial/' + tutorial.slug))
),
],
}, },
}, },
}; };
function tutorial_entries() {
return get_tutorial_list(get_tutorial_data()).flatMap(({ tutorials }) =>
tutorials.map((tutorial) => /** @type {`/${string}`} */ ('/tutorial/' + tutorial.slug))
);
}

Loading…
Cancel
Save