diff --git a/Dockerfile-dev b/Dockerfile-dev index dce7f8fdb9..5107e20984 100644 --- a/Dockerfile-dev +++ b/Dockerfile-dev @@ -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} @@ -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 diff --git a/Dockerfile-prod b/Dockerfile-prod index 71479ec7e9..80399e77d2 100644 --- a/Dockerfile-prod +++ b/Dockerfile-prod @@ -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 diff --git a/next.config.js b/next.config.js index f662a451f1..6857806c1b 100644 --- a/next.config.js +++ b/next.config.js @@ -9,7 +9,4 @@ module.exports = nextTranslate({ }); return config; }, - experimental: { - esmExternals: false, - }, });