diff --git a/Dockerfile b/Dockerfile index e8a4872c6..a367c6d5c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,8 @@ FROM timbru31/node-alpine-git as builder WORKDIR /tmp/nexus-web COPY . /tmp/nexus-web -RUN yarn && yarn build +RUN yarn +RUN NODE_OPTIONS=--max-old-space-size=8192 yarn build FROM node:18-alpine ENV NODE_ENV=production diff --git a/vite.config.js b/vite.config.js index 032d4cb3c..cb6ecce27 100644 --- a/vite.config.js +++ b/vite.config.js @@ -75,6 +75,7 @@ export default defineConfig(() => { emptyOutDir: false, outDir: 'dist', assetsDir: 'public', + sourcemap: process.env.NODE_ENV !== 'production', commonjsOptions: { transformMixedEsModules: true },