Skip to content

Commit a3d412e

Browse files
committed
fix: remove assetPrefix to resolve CSS loading issues in production
- Remove assetPrefix from next.config.ts to fix static asset loading - Keep basePath for proper routing on GitHub Pages - Ensure CSS files are served correctly in production build - Fix production deployment showing only HTML without styles
1 parent 238bbb3 commit a3d412e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

next.config.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@ import type { NextConfig } from "next";
22

33
const nextConfig: NextConfig = {
44
output: 'export',
5-
// basePath: '/design',
6-
// assetPrefix: '/design',
5+
basePath: '/design',
76
images: {
87
unoptimized: true,
98
},

0 commit comments

Comments
 (0)