Skip to content

Commit 1d8b3f1

Browse files
committed
chore: update asset prefix in Next.js configuration
- Changed the asset prefix for production to 'https://yieldmax.xyz' for proper resource handling in production environments.
1 parent be7c53b commit 1d8b3f1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

next.config.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ const nextConfig = {
1414
},
1515
],
1616
},
17-
// If you have public resources with special handling needs
18-
assetPrefix: process.env.NODE_ENV === 'production' ? '/' : '',
17+
// Configure asset prefix for production
18+
assetPrefix: process.env.NODE_ENV === 'production' ? 'https://yieldmax.xyz' : '',
1919
// Skip type checking during build
2020
typescript: {
2121
ignoreBuildErrors: true,
@@ -24,6 +24,7 @@ const nextConfig = {
2424
ignoreDuringBuilds: true,
2525
},
2626
// Enable trailing slash to prevent mismatches in exported static files
27+
2728
trailingSlash: true,
2829
};
2930

0 commit comments

Comments
 (0)