Skip to content

Commit 7a7aa84

Browse files
committed
fix:仅客户端生产环境优化
1 parent 4690d7e commit 7a7aa84

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

next.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ const nextConfig = {
310310
)
311311

312312
// 性能优化配置
313-
if (!dev) {
313+
if (!dev && !isServer) {
314314
// 生产环境优化
315315
config.optimization = {
316316
...config.optimization,

0 commit comments

Comments
 (0)