From 9752a9ab0c47c0713ecb985bd36fa7892937c584 Mon Sep 17 00:00:00 2001 From: dragonxp <35697471+dragonxp@users.noreply.github.com> Date: Sat, 12 Jul 2025 18:40:49 +0545 Subject: [PATCH] Updated next config to support dynamic deployment --- frontend/Dockerfile | 1 + frontend/next.config.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/Dockerfile b/frontend/Dockerfile index 937da751..69cea002 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -26,6 +26,7 @@ COPY . . # Next.js collects completely anonymous telemetry data about general usage. # Learn more here: https://nextjs.org/telemetry ENV NEXT_TELEMETRY_DISABLED=1 +ENV NEXT_OUTPUT=standalone RUN \ if [ -f yarn.lock ]; then yarn run build; \ diff --git a/frontend/next.config.ts b/frontend/next.config.ts index 9e13e5f6..efd187d5 100644 --- a/frontend/next.config.ts +++ b/frontend/next.config.ts @@ -1,7 +1,7 @@ import type { NextConfig } from 'next'; const nextConfig = (): NextConfig => ({ - output: 'standalone', + output: (process.env.NEXT_OUTPUT as 'standalone') || undefined, }); export default nextConfig;