Updated next config to support dynamic deployment

This commit is contained in:
dragonxp 2025-07-12 18:40:49 +05:45
parent 421ae4d66b
commit 9752a9ab0c
2 changed files with 2 additions and 1 deletions

View File

@ -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; \

View File

@ -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;