Commit 1c93a2b6 by 肖康

performance

parent 4d71bc5a
Showing with 7 additions and 0 deletions
/** @type {import('next').NextConfig} */ /** @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 = { const nextConfig = {
// output: 'standalone', // output: 'standalone',
// experimental: { // experimental: {
......
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