Skip to content

Commit e3b327b

Browse files
committed
fix: correct web demo next config
1 parent d6da345 commit e3b327b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/web-demo/next.config.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
import type { NextConfig } from "next";
22

3+
const isProd = process.env.NODE_ENV === "production"
4+
35
const nextConfig: NextConfig = {
4-
output: "export"
6+
output: "export",
7+
basePath: isProd ? "/js-jieba" : undefined,
8+
assetPrefix: isProd ? "/js-jieba/" : undefined,
59
};
610

711
export default nextConfig;

0 commit comments

Comments
 (0)