Convert app.js to ES modules

GitOrigin-RevId: 7819cc8c8235b93b985c1c07c7dec778c93d9134
This commit is contained in:
andrew rumble
2024-10-14 11:04:23 +00:00
committed by Copybot
parent 209a3670ce
commit e128e8ea32
16 changed files with 130 additions and 137 deletions
+2 -2
View File
@@ -71,7 +71,7 @@ RUN OVERLEAF_CONFIG=/overleaf/services/web/config/settings.overrides.saas.js npm
# the web image with only production dependencies but no webpack production build, for development
FROM pug AS app-only
USER node
CMD ["node", "--expose-gc", "app.js"]
CMD ["node", "--expose-gc", "app.mjs"]
# the final production image, with webpack production build but without source maps
@@ -80,4 +80,4 @@ ARG SENTRY_RELEASE
ENV SENTRY_RELEASE=$SENTRY_RELEASE
COPY --from=webpack-no-sourcemaps /overleaf/services/web/public /overleaf/services/web/public
USER node
CMD ["node", "--expose-gc", "app.js"]
CMD ["node", "--expose-gc", "app.mjs"]