mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-15 14:43:46 +01:00
Sandboxed Compiles: support configurable texlive image root via env var
This commit is contained in:
@@ -45,7 +45,7 @@ const ProjectOptionsHandler = {
|
||||
if (!isAllowed) {
|
||||
throw new OError('invalid imageName', { imageName })
|
||||
}
|
||||
return settings.imageRoot + '/' + imageName
|
||||
return imageName
|
||||
},
|
||||
|
||||
async setImageName(projectId, imageName) {
|
||||
|
||||
@@ -20,3 +20,6 @@ if (process.env.SANDBOXED_COMPILES === 'true') {
|
||||
}
|
||||
Settings.currentImageName = process.env.TEX_LIVE_DOCKER_IMAGE
|
||||
}
|
||||
|
||||
const SandboxedCompilesModule = {}
|
||||
export default SandboxedCompilesModule
|
||||
|
||||
Reference in New Issue
Block a user