Use basePath for internal links and export from next.config.ts
This commit is contained in:
@@ -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)'}`);
|
||||
|
||||
Reference in New Issue
Block a user