mirror of
https://github.com/zenlm/zen-code-docs.git
synced 2026-10-30 14:58:40 +00:00
32 lines
674 B
JavaScript
32 lines
674 B
JavaScript
import nextra from "nextra";
|
|
|
|
const withNextra = nextra({
|
|
latex: true,
|
|
search: {
|
|
codeblocks: false,
|
|
},
|
|
contentDirBasePath: "/",
|
|
unstable_shouldAddLocaleToLinks: true,
|
|
});
|
|
|
|
const isProduction = process.env.NODE_ENV === "production";
|
|
const assetPrefix = isProduction ? "/qwen-code-docs" : "";
|
|
|
|
export default withNextra({
|
|
reactStrictMode: true,
|
|
basePath: assetPrefix,
|
|
assetPrefix: assetPrefix,
|
|
i18n: {
|
|
locales: ["en", "zh", "de", "fr", "ru", "ja"],
|
|
defaultLocale: "en",
|
|
},
|
|
eslint: {
|
|
ignoreDuringBuilds: true,
|
|
},
|
|
output: "export",
|
|
trailingSlash: true,
|
|
images: {
|
|
unoptimized: true, // mandatory, otherwise won't export
|
|
},
|
|
});
|