We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a0491d commit 976c8a6Copy full SHA for 976c8a6
next.config.ts
@@ -3,8 +3,8 @@ import path from 'path';
3
4
const isProd = process.env.NODE_ENV === 'production';
5
const basePath = isProd ? (process.env.BASE_PATH || '') : '';
6
-const targetFolder = process.env.TARGET_FOLDER || '';
7
-const assetPrefix = isProd && targetFolder !== '' ? './' : '';
+// const targetFolder = process.env.TARGET_FOLDER || '';
+const assetPrefix = isProd ? (basePath ? `${basePath.replace(/\/$/, '')}/` : './') : '';
8
9
/** @type {import('next').NextConfig} */
10
const nextConfig = {
0 commit comments