We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9303bb commit 3042cb4Copy full SHA for 3042cb4
1 file changed
qwen-agent-docs/website/next.config.mjs
@@ -1,18 +1,17 @@
1
import nextra from "nextra";
2
3
-const isProduction = process.env.NODE_ENV === "production";
4
-
5
const withNextra = nextra({
6
latex: true,
7
search: {
8
codeblocks: false,
9
},
10
contentDirBasePath: "/",
11
defaultShowCopyCode: true,
12
- // 在开发环境自动为链接添加语言前缀,生产环境禁用(避免与静态导出冲突)
13
- unstable_shouldAddLocaleToLinks: !isProduction,
+ // 自动为侧边栏和导航链接添加语言前缀
+ unstable_shouldAddLocaleToLinks: false,
14
});
15
+const isProduction = process.env.NODE_ENV === "production";
16
const repo = "Qwen-Agent";
17
const basePath = isProduction ? `/${repo}` : "";
18
0 commit comments