Skip to content

Commit

Permalink
attempt to fix javascript heap out of memory - ENV NODE_OPTIONS="--ma…
Browse files Browse the repository at this point in the history
…x-old-space-size=8192"

 option added
  • Loading branch information
Infra1515 committed Nov 14, 2022
1 parent d1717fd commit 200196a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 3 additions & 0 deletions Dockerfile-dev
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ ARG NEXT_PUBLIC_CHAIN_STATUS
ARG NODE_ENV
ARG PORT=3000


# Generate env file
ENV NEXT_PUBLIC_GRAPHQL_URL ${NEXT_PUBLIC_GRAPHQL_URL}
ENV NEXT_PUBLIC_GRAPHQL_WS ${NEXT_PUBLIC_GRAPHQL_WS}
Expand All @@ -34,6 +35,8 @@ ENV NEXT_PUBLIC_WS_CHAIN_URL ${NEXT_PUBLIC_WS_CHAIN_URL}
ENV NEXT_PUBLIC_CHAIN_STATUS ${NEXT_PUBLIC_CHAIN_STATUS}
ENV NODE_ENV ${NODE_ENV}
ENV PORT ${PORT}
ENV NODE_OPTIONS="--max-old-space-size=8192"


#
# Update schema
Expand Down
1 change: 1 addition & 0 deletions Dockerfile-prod
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ ENV NEXT_PUBLIC_CHAIN_STATUS ${NEXT_PUBLIC_CHAIN_STATUS}
ENV NEXT_PUBLIC_CHAIN_TYPE ${NEXT_PUBLIC_CHAIN_TYPE}
ENV NODE_ENV ${NODE_ENV}
ENV PORT ${PORT}
ENV NODE_OPTIONS="--max-old-space-size=8192"

# Update schema
# RUN npm run graphql:codegen
Expand Down
3 changes: 0 additions & 3 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,4 @@ module.exports = nextTranslate({
});
return config;
},
experimental: {
esmExternals: false,
},
});

0 comments on commit 200196a

Please sign in to comment.