Skip to content

Commit

Permalink
increase vite heap memory
Browse files Browse the repository at this point in the history
increase vite heap memory
  • Loading branch information
bilalesi authored Oct 25, 2023
2 parents 4c65035 + 87c3f29 commit 5bbc9de
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ export default defineConfig(() => {
emptyOutDir: false,
outDir: 'dist',
assetsDir: 'public',
sourcemap: process.env.NODE_ENV !== 'production',
commonjsOptions: {
transformMixedEsModules: true
},
Expand Down

0 comments on commit 5bbc9de

Please sign in to comment.