Selaa lähdekoodia

PNP deployment: clsi-lb, web, latexqc fixes (#34696)

GitOrigin-RevId: fe1f5a7670d6fcf2128c5e2b50cc2a544afb1ebc
Anna Claire Fields 1 kuukausi sitten
vanhempi
sitoutus
e1226515f6

+ 2 - 1
services/web/Dockerfile

@@ -35,7 +35,7 @@ FROM base AS deps-prod
 COPY services/web/scripts/fetch-pyodide-packages.mjs /overleaf/services/web/scripts/fetch-pyodide-packages.mjs
 RUN cd /overleaf/services/web && node scripts/fetch-pyodide-packages.mjs
 
-COPY package.json yarn.lock .yarnrc.yml /overleaf/
+COPY package.json yarn.lock .yarnrc.yml .pnp.register.mjs /overleaf/
 COPY libraries/access-token-encryptor/package.json /overleaf/libraries/access-token-encryptor/package.json
 COPY libraries/eslint-plugin/package.json /overleaf/libraries/eslint-plugin/package.json
 COPY libraries/fetch-utils/package.json /overleaf/libraries/fetch-utils/package.json
@@ -132,6 +132,7 @@ COPY tools/migrations/ /overleaf/tools/migrations/
 RUN rm /overleaf/services/web/modules/server-ce-scripts -rf
 RUN OVERLEAF_CONFIG=/overleaf/services/web/config/settings.overrides.saas.js nice yarn run precompile-pug
 
+ENV NODE_OPTIONS="--require /overleaf/.pnp.cjs --import /overleaf/.pnp.register.mjs"
 
 # the web image with only production dependencies but no webpack production build, for development
 FROM pug AS app-only

+ 2 - 2
services/web/scripts/translations/cleanupUnusedLocales.js

@@ -47,8 +47,8 @@ async function main() {
     {
       // run from services/web directory
       cwd: Path.join(__dirname, '../../'),
-      // 1GB
-      maxBuffer: 1024 * 1024 * 1024,
+      // 2GB
+      maxBuffer: 2 * 1024 * 1024 * 1024,
       // Docs: https://nodejs.org/docs/latest-v16.x/api/child_process.html#child_process_options_stdio
       // Entries are [stdin, stdout, stderr]
       stdio: ['ignore', 'pipe', 'inherit'],