Skip to content

Commit 5b34193

Browse files
committed
fix: 修复 next build 问题
1 parent 3e144db commit 5b34193

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

next.config.mjs

+7-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,13 @@ const nextConfig = {
33
experimental: {
44
serverComponentsExternalPackages: ['pg'],
55
},
6-
webpack: {
7-
exclude: ["/docs"]
8-
}
6+
webpack: (config) => {
7+
config.module.rules?.push({
8+
test: /docs/,
9+
loader: "ignore-loader",
10+
});
11+
return config;
12+
},
913
};
1014

1115
export default nextConfig;

0 commit comments

Comments
 (0)