Add configuration and build changes

This commit is contained in:
Kamran Ahmed
2019-11-16 16:11:08 +04:00
parent f3592155bf
commit 40919dec14
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,
};