Commit cd18bef6 by 肖康

polyfill

parent 12b2106d
Showing with 9 additions and 8 deletions
/** @type {import('next').NextConfig} */ /** @type {import('next').NextConfig} */
import './polyfill.js';
const nextConfig = { const nextConfig = {
// output: 'standalone', // output: 'standalone',
// experimental: { // experimental: {
// prefetch: false, // prefetch: false,
// }, // },
webpack: (config, { isServer }) => {
if (!isServer) {
config.resolve.fallback = {
performance: false
};
}
return config;
},
reactStrictMode: false, // 关闭 React 严格模式 reactStrictMode: false, // 关闭 React 严格模式
// 配置代理 // 配置代理
async rewrites() { async rewrites() {
......
if (typeof performance === 'undefined') {
global.performance = {
mark: () => {},
measure: () => {},
getEntriesByName: () => []
};
}
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