fix build

This commit is contained in:
2025-04-23 20:18:08 +08:00
parent ed01b88e04
commit ebe1b1ddcc
2 changed files with 23 additions and 30 deletions

View File

@@ -2,17 +2,14 @@ import type { NextConfig } from "next";
const nextConfig: NextConfig = {
/* config options here */
// 设置需要转译的包
// 配置实验性选项
// 实验性选项
experimental: {
// 启用边缘函数中间件
instrumentationHook: true,
// 配置中间件匹配
middleware: {
// 确保匹配所有路径
matchAll: '/((?!_next|static|api|public).*)',
},
// 删除不支持的选项
// instrumentationHook: true,
// middleware: {
// matchAll: '/((?!_next|static|api|public).*)',
// },
},
// 禁用严格模式,避免开发时重复渲染