1
0
mirror of https://github.com/kamranahmedse/developer-roadmap.git synced 2025-09-25 16:39:02 +02:00

Add configuration and build changes

This commit is contained in:
Kamran Ahmed
2019-11-16 16:11:08 +04:00
parent 0cdefbf7d0
commit 335fb92925
7 changed files with 41 additions and 28 deletions

View File

@@ -80,8 +80,19 @@ const getRoadmapRoutes = () => {
}, {});
};
/**
* Generates the path-map understood by next.js
* @returns {{}}
*/
const getPathMap = () => () => ({
...getPageRoutes(),
...getGuideRoutes(),
...getRoadmapRoutes(),
});
module.exports = {
getPageRoutes,
getGuideRoutes,
getRoadmapRoutes,
getPathMap,
};