15 lines
429 B
TypeScript
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;
|