fix build
This commit is contained in:
@@ -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).*)',
|
||||
// },
|
||||
},
|
||||
|
||||
// 禁用严格模式,避免开发时重复渲染
|
||||
|
||||
Reference in New Issue
Block a user