Refactor demo URLs and add nginx reverse-proxy configuration

This commit is contained in:
2025-06-07 21:16:50 +02:00
parent f8f88f42f4
commit f080037902
5 changed files with 58 additions and 7 deletions

View File

@@ -1,7 +1,11 @@
import type { NextConfig } from "next";
import type {NextConfig} from "next";
const isProd = process.env.NODE_ENV === 'production';
const nextConfig: NextConfig = {
/* config options here */
output: 'standalone',
basePath: isProd ? '/lawfirm-demos/demo1' : '',
assetPrefix: isProd ? '/lawfirm-demos/demo1' : '',
};
export default nextConfig;