Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
肖康
/
Europa-web
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
12b2106d
authored
Apr 02, 2025
by
肖康
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
测试环境运行
parent
1c93a2b6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
next.config.mjs
next.config.mjs
View file @
12b2106d
/** @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() {
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment