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
|
- ./nginx.conf:/etc/nginx/nginx.conf:ro
|
||||||
networks:
|
networks:
|
||||||
- demos-net
|
- demos-net
|
||||||
environment:
|
|
||||||
- NODE_ENV=production
|
|
||||||
|
|
||||||
main-website:
|
main-website:
|
||||||
image: registry.boomlab.party/rheinsw/demo-websites/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';
|
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 = {
|
const nextConfig: NextConfig = {
|
||||||
output: 'standalone',
|
output: 'standalone',
|
||||||
basePath: isProd ? '/lawfirm/demo1' : '',
|
basePath: isProd ? '/lawfirm/demo1' : '',
|
||||||
|
|||||||
Reference in New Issue
Block a user