diff --git a/v1/lib/core/DocsSidebar.js b/v1/lib/core/DocsSidebar.js index 3475d2337451..5258de9286d6 100644 --- a/v1/lib/core/DocsSidebar.js +++ b/v1/lib/core/DocsSidebar.js @@ -14,8 +14,9 @@ const readCategories = require('../server/readCategories.js'); let languages; -if (fs.existsSync(`../server/languages.js`)) { - languages = require(`../server/languages.js`); +const CWD = process.cwd(); +if (fs.existsSync(`${CWD}/languages.js`)) { + languages = require(`${CWD}/languages.js`); } else { languages = [ {