Remove NODE_ENV from nginx service and add logging in next.config.ts
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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' : '',
|
||||
|
||||
Reference in New Issue
Block a user