mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
add sandboxed compiles sibling containers
This commit is contained in:
parent
ee0c7293e9
commit
1e843c52da
1 changed files with 6 additions and 0 deletions
|
@ -611,6 +611,12 @@ if process.env["SANDBOXED_COMPILES"] == "true"
|
||||||
if !settings.path?
|
if !settings.path?
|
||||||
settings.path = {}
|
settings.path = {}
|
||||||
settings.path.synctexBaseDir = () -> "/compile"
|
settings.path.synctexBaseDir = () -> "/compile"
|
||||||
|
if process.env['SANDBOXED_COMPILES_SIBLING_CONTAINERS'] == 'true'
|
||||||
|
console.log("Using sibling containers for sandoxed compiles")
|
||||||
|
if process.env['SANDBOXED_COMPILES_HOST_DIR']
|
||||||
|
settings.path.sandboxedCompilesHostDir = process.env['SANDBOXED_COMPILES_HOST_DIR']
|
||||||
|
else
|
||||||
|
console.error('Sibling containers, but SANDBOXED_COMPILES_HOST_DIR not set')
|
||||||
|
|
||||||
|
|
||||||
# Templates
|
# Templates
|
||||||
|
|
Loading…
Reference in a new issue