Skip to content

Commit e101a98

Browse files
committed
conditional bs
1 parent 9c3a196 commit e101a98

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

next.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
const nextConfig = {
33
output: 'export',
44
trailingSlash: true,
5-
basePath: '/CadeXRPortfolio2025',
6-
assetPrefix: '/CadeXRPortfolio2025/',
5+
basePath: process.env.NODE_ENV === 'production' ? '/CadeXRPortfolio2025' : '',
6+
assetPrefix: process.env.NODE_ENV === 'production' ? '/CadeXRPortfolio2025/' : '',
77
images: {
88
unoptimized: true,
99
domains: ['localhost'],

0 commit comments

Comments
 (0)