Remove NODE_ENV from nginx service and add logging in next.config.ts

This commit is contained in:
2025-06-08 01:56:47 +02:00
parent 32dc1cf080
commit f0ceb08a98
2 changed files with 3 additions and 2 deletions

View File

@@ -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' : '',