Skip to content

Commit 3042cb4

Browse files
committed
update config
1 parent a9303bb commit 3042cb4

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

qwen-agent-docs/website/next.config.mjs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
11
import nextra from "nextra";
22

3-
const isProduction = process.env.NODE_ENV === "production";
4-
53
const withNextra = nextra({
64
latex: true,
75
search: {
86
codeblocks: false,
97
},
108
contentDirBasePath: "/",
119
defaultShowCopyCode: true,
12-
// 在开发环境自动为链接添加语言前缀,生产环境禁用(避免与静态导出冲突)
13-
unstable_shouldAddLocaleToLinks: !isProduction,
10+
// 自动为侧边栏和导航链接添加语言前缀
11+
unstable_shouldAddLocaleToLinks: false,
1412
});
1513

14+
const isProduction = process.env.NODE_ENV === "production";
1615
const repo = "Qwen-Agent";
1716
const basePath = isProduction ? `/${repo}` : "";
1817

0 commit comments

Comments
 (0)