Skip to content

Commit fcef406

Browse files
fix(next.config.mjs): update assetPrefix to ensure correct asset loading
The assetPrefix was changed from './' to '/' to ensure assets load correctly with a leading slash. This fixes potential issues with asset paths in the exported build.
1 parent d1d4c50 commit fcef406

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

next.config.mjs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/** @type {import('next').NextConfig} */
22
const nextConfig = {
33
output: 'export',
4-
basePath: '', // No subdirectory
5-
assetPrefix: './', // Ensures assets load correctly
4+
basePath: '', // No subdirectory
5+
assetPrefix: '/', // Ensures assets load correctly with leading slash
66
// Your Next.js configuration options
77
};
88

0 commit comments

Comments
 (0)