import type {NextConfig} from "next";

const isProd = process.env.NODE_ENV === 'production';

export const basePath = isProd ? '/lawfirm/demo1' : '';
export const assetPrefix = isProd ? '/lawfirm/demo1' : '';

console.log(`🚀 [next.config.ts] Running in ${process.env.NODE_ENV} mode`);
console.log(`👉 basePath: ${basePath || '(none)'}`);

const nextConfig: NextConfig = {
    output: 'standalone',
    basePath,
    assetPrefix,
};

export default nextConfig;
