Merge pull request #5718 from overleaf/spd-built-images

Support prebuilt images and add overrides for using mapped folders

GitOrigin-RevId: b1a1f7fe61ead1c08f3b8eef35ef90926ca42f36
This commit is contained in:
Simon Detheridge 2022-02-07 13:33:38 +00:00 committed by Copybot
parent ae0c347f27
commit fe1cb010b4

View file

@ -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)
},