Files
demo-websites/lawfirm-demos/demo-1/next.config.ts

15 lines
429 B
TypeScript

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' : '',
assetPrefix: isProd ? '/lawfirm/demo1' : '',
};
export default nextConfig;