Use basePath for internal links and export from next.config.ts

This commit is contained in:
2025-06-08 22:14:32 +02:00
parent 94b491a274
commit 162524e5b0
5 changed files with 17 additions and 12 deletions

View File

@@ -2,8 +2,8 @@ import type {NextConfig} from "next";
const isProd = process.env.NODE_ENV === 'production';
const basePath = isProd ? '/lawfirm/demo1' : '';
const assetPrefix = isProd ? '/lawfirm/demo1' : '';
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)'}`);