Files
shorturl-analytics/next.config.ts

36 lines
804 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import type { NextConfig } from "next";
const nextConfig: NextConfig = {
/* config options here */
// 设置需要转译的包
// 配置实验性选项
experimental: {
// 启用边缘函数中间件
instrumentationHook: true,
// 配置中间件匹配
middleware: {
// 确保匹配所有路径
matchAll: '/((?!_next|static|api|public).*)',
},
},
// 禁用严格模式,避免开发时重复渲染
reactStrictMode: false,
// 暂时禁用standalone输出模式解决构建问题
// output: 'standalone',
// 忽略ESLint错误不会在构建时中断
eslint: {
ignoreDuringBuilds: true,
},
// 忽略TypeScript错误不会在构建时中断
typescript: {
ignoreBuildErrors: true,
},
}
export default nextConfig;