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 d6da345 commit e3b327bCopy full SHA for e3b327b
packages/web-demo/next.config.ts
@@ -1,7 +1,11 @@
1
import type { NextConfig } from "next";
2
3
+const isProd = process.env.NODE_ENV === "production"
4
+
5
const nextConfig: NextConfig = {
- output: "export"
6
+ output: "export",
7
+ basePath: isProd ? "/js-jieba" : undefined,
8
+ assetPrefix: isProd ? "/js-jieba/" : undefined,
9
};
10
11
export default nextConfig;
0 commit comments