Merge pull request #17874 from overleaf/jpa-ol-project-id-in-env

[clsi] expose Overleaf project id to LaTeX compilation via env var

GitOrigin-RevId: cf8be6f8d83351a587d9ac7940f61a046a14035e
This commit is contained in:
Jakob Ackermann
2024-04-11 11:49:47 +01:00
committed by Copybot
parent a6fb983afc
commit 9351c03c3b
2 changed files with 7 additions and 2 deletions

View File

@@ -107,7 +107,9 @@ async function doCompile(request) {
timings.sync = writeToDiskTimer.done()
// set up environment variables for chktex
const env = {}
const env = {
OVERLEAF_PROJECT_ID: request.project_id,
}
if (Settings.texliveOpenoutAny && Settings.texliveOpenoutAny !== '') {
// override default texlive openout_any environment variable
env.openout_any = Settings.texliveOpenoutAny