File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ export default function HomePage() {
2424
2525 < div className = "flex flex-col sm:flex-row gap-4" >
2626 < Link
27- href = " /docs"
27+ href = { ` ${ process . env . basePath } /docs` }
2828 className = "inline-flex items-center justify-center rounded-lg bg-fd-primary px-6 py-3 text-sm font-medium text-white hover:bg-fd-primary/90 transition-colors"
2929 >
3030 Read Documentation
Original file line number Diff line number Diff line change @@ -2,8 +2,9 @@ import { createMDX } from "fumadocs-mdx/next";
22const withMDX = createMDX ( ) ;
33
44const isGithubActions = process . env . GITHUB_ACTIONS || false ;
5+ const isProduction = process . env . NODE_ENV === "production" ;
56
6- let assetPrefix = "./" ;
7+ let assetPrefix = isProduction ? "./" : " ";
78let basePath = "" ;
89
910if ( isGithubActions ) {
@@ -16,6 +17,7 @@ if (isGithubActions) {
1617/** @type {import('next').NextConfig } */
1718const config = {
1819 reactStrictMode : true ,
20+ scrollRestoration : true ,
1921 output : "export" ,
2022 assetPrefix,
2123 basePath,
You can’t perform that action at this time.
0 commit comments