From f0ceb08a98f2e4742fb8234e1a12827a65fdbba7 Mon Sep 17 00:00:00 2001 From: Thatsaphorn Atchariyaphap Date: Sun, 8 Jun 2025 01:56:47 +0200 Subject: [PATCH] Remove NODE_ENV from nginx service and add logging in next.config.ts --- docker-compose.yml | 2 -- lawfirm-demos/demo-1/next.config.ts | 3 +++ 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index f9cdb4c..e518592 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -8,8 +8,6 @@ services: - ./nginx.conf:/etc/nginx/nginx.conf:ro networks: - demos-net - environment: - - NODE_ENV=production main-website: image: registry.boomlab.party/rheinsw/demo-websites/main-website diff --git a/lawfirm-demos/demo-1/next.config.ts b/lawfirm-demos/demo-1/next.config.ts index 81c3944..63df2b7 100644 --- a/lawfirm-demos/demo-1/next.config.ts +++ b/lawfirm-demos/demo-1/next.config.ts @@ -2,6 +2,9 @@ import type {NextConfig} from "next"; const isProd = process.env.NODE_ENV === 'production'; +console.log(`🚀 [next.config.ts] Running in ${process.env.NODE_ENV} mode`); +console.log(`👉 basePath: ${isProd ? '/lawfirm/demo1' : '(none)'}`); + const nextConfig: NextConfig = { output: 'standalone', basePath: isProd ? '/lawfirm/demo1' : '',