File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ const config = {
77 reactStrictMode : true ,
88 output : 'export' , // Enable static HTML export
99 trailingSlash : true , // Required for static export
10+ basePath : '/docs' , // Set base path for the application
11+ assetPrefix : '/docs' , // Ensure assets are also prefixed with /docs
1012 images : {
1113 unoptimized : true // Required for static export
1214 } ,
Original file line number Diff line number Diff line change 55 "private" : true ,
66 "scripts" : {
77 "dev" : " next dev" ,
8- "build" : " next build" ,
8+ "build" : " next build && npm run move-assets" ,
9+ "move-assets" : " mkdir -p out/docs/_next && cp -r out/_next/* out/docs/_next/ && rm -rf out/_next" ,
910 "start" : " next start" ,
1011 "lint:md" : " npx markdownlint-cli2 '**/*.md' '#node_modules' '#.github'" ,
1112 "lint:links" : " node check-links.js" ,
You can’t perform that action at this time.
0 commit comments