diff --git a/collector/utils/extensions/Confluence/index.js b/collector/utils/extensions/Confluence/index.js index 00428d5b..c61e0b3e 100644 --- a/collector/utils/extensions/Confluence/index.js +++ b/collector/utils/extensions/Confluence/index.js @@ -101,7 +101,10 @@ async function loadConfluence({ pageUrl, username, accessToken }) { const outFolderPath = process.env.NODE_ENV === "development" - ? path.resolve(__dirname, `../../../../server/storage/documents/${outFolder}`) + ? path.resolve( + __dirname, + `../../../../server/storage/documents/${outFolder}` + ) : path.resolve(process.env.STORAGE_DIR, `documents/${outFolder}`); if (!fs.existsSync(outFolderPath)) {