From fe1cb010b49847d5153bd244c01b583dac278178 Mon Sep 17 00:00:00 2001 From: Simon Detheridge Date: Mon, 7 Feb 2022 13:33:38 +0000 Subject: [PATCH] Merge pull request #5718 from overleaf/spd-built-images Support prebuilt images and add overrides for using mapped folders GitOrigin-RevId: b1a1f7fe61ead1c08f3b8eef35ef90926ca42f36 --- services/clsi/config/settings.defaults.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/services/clsi/config/settings.defaults.js b/services/clsi/config/settings.defaults.js index 600f159a01..b724bb5493 100644 --- a/services/clsi/config/settings.defaults.js +++ b/services/clsi/config/settings.defaults.js @@ -9,9 +9,12 @@ module.exports = { catchErrors: process.env.CATCH_ERRORS === 'true', path: { - compilesDir: Path.resolve(__dirname, '../compiles'), - outputDir: Path.resolve(__dirname, '../output'), - clsiCacheDir: Path.resolve(__dirname, '../cache'), + compilesDir: + process.env.CLSI_COMPILES_PATH || Path.resolve(__dirname, '../compiles'), + outputDir: + process.env.CLSI_OUTPUT_PATH || Path.resolve(__dirname, '../output'), + clsiCacheDir: + process.env.CLSI_CACHE_PATH || Path.resolve(__dirname, '../cache'), synctexBaseDir(projectId) { return Path.join(this.compilesDir, projectId) },