Skip to content

Commit

Permalink
fix: 修复 next build 问题
Browse files Browse the repository at this point in the history
  • Loading branch information
besscroft committed Apr 10, 2024
1 parent 3e144db commit 5b34193
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,13 @@ const nextConfig = {
experimental: {
serverComponentsExternalPackages: ['pg'],
},
webpack: {
exclude: ["/docs"]
}
webpack: (config) => {
config.module.rules?.push({
test: /docs/,
loader: "ignore-loader",
});
return config;
},
};

export default nextConfig;

0 comments on commit 5b34193

Please sign in to comment.