diff --git a/lawfirm-demos/demo-2/next.config.ts b/lawfirm-demos/demo-2/next.config.ts index e9ffa30..9b2bb5f 100644 --- a/lawfirm-demos/demo-2/next.config.ts +++ b/lawfirm-demos/demo-2/next.config.ts @@ -1,7 +1,17 @@ -import type { NextConfig } from "next"; +import type {NextConfig} from "next"; + +const isProd = process.env.NODE_ENV === 'production'; + +export const basePath = isProd ? '/lawfirm/demo2' : ''; +export const assetPrefix = isProd ? '/lawfirm/demo2' : ''; + +console.log(`🚀 [next.config.ts] Running in ${process.env.NODE_ENV} mode`); +console.log(`👉 basePath: ${basePath || '(none)'}`); const nextConfig: NextConfig = { - /* config options here */ + output: 'standalone', + basePath, + assetPrefix, }; export default nextConfig;