From f611e561ac67d99d9dfce6d70561d0c3cea6de91 Mon Sep 17 00:00:00 2001 From: vchikalkin Date: Sat, 23 Dec 2023 15:50:07 +0300 Subject: [PATCH] apps/web: again trying to fix environment variables --- apps/web/Dockerfile | 1 + apps/web/next.config.js | 1 + 2 files changed, 2 insertions(+) diff --git a/apps/web/Dockerfile b/apps/web/Dockerfile index 67ac4af..43b8444 100644 --- a/apps/web/Dockerfile +++ b/apps/web/Dockerfile @@ -41,6 +41,7 @@ USER nextjs COPY --from=installer /app/apps/web/next.config.js . COPY --from=installer /app/apps/web/package.json . +COPY .env .env # Automatically leverage output traces to reduce image size # https://nextjs.org/docs/advanced-features/output-file-tracing diff --git a/apps/web/next.config.js b/apps/web/next.config.js index 76167ec..bd04912 100644 --- a/apps/web/next.config.js +++ b/apps/web/next.config.js @@ -34,6 +34,7 @@ const nextConfig = { ...favicons.map((fileName) => buildFaviconRewrite(`/${fileName}`)), ]; }, + env, }; module.exports = nextConfig;