Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ COPY package.json yarn.lock ./

RUN yarn install --frozen-lockfile --non-interactive --ignore-scripts && yarn cache clean
COPY . .
RUN NODE_NO_BUILD_DYNAMICS=true yarn typechain && yarn build
RUN NODE_NO_BUILD_DYNAMICS=true NODE_ENV=production yarn typechain && yarn build
# public/runtime is used to inject runtime vars; it should exist and user node should have write access there for it
RUN rm -rf /app/public/runtime && mkdir /app/public/runtime && chown node /app/public/runtime

Expand All @@ -20,7 +20,9 @@ ARG BASE_PATH=""
#ARG DEFAULT_CHAIN="1"

ENV NEXT_TELEMETRY_DISABLED=1 \
BASE_PATH=$BASE_PATH
BASE_PATH=$BASE_PATH \
PORT=80 \
NODE_ENV=production
#SUPPORTED_CHAINS=$SUPPORTED_CHAINS \
#DEFAULT_CHAIN=$DEFAULT_CHAIN

Expand Down
3 changes: 2 additions & 1 deletion next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,8 @@ export default withBundleAnalyzer({

oneInchApiKey: process.env.ONE_INCH_API_KEY,

cspTrustedHosts: process.env.CSP_TRUSTED_HOSTS,
// DAPPNODE
cspTrustedHosts: 'https://*.lido.fi,http://*.dappnode',
cspReportUri: process.env.CSP_REPORT_URI,
cspReportOnly: process.env.CSP_REPORT_ONLY,

Expand Down