Commit 12b2106d by 肖康

测试环境运行

parent 1c93a2b6
Showing with 8 additions and 6 deletions
/** @type {import('next').NextConfig} */
import { performance } from 'perf_hooks';
// 仅在 Node.js 环境下注入 polyfill
if (typeof global.performance === 'undefined' && typeof window === 'undefined') {
global.performance = performance;
}
const nextConfig = {
// output: 'standalone',
// experimental: {
// prefetch: false,
// },
webpack: (config, { isServer }) => {
if (!isServer) {
config.resolve.fallback = {
performance: false
};
}
return config;
},
reactStrictMode: false, // 关闭 React 严格模式
// 配置代理
async rewrites() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment