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
cd18bef6
authored
Apr 02, 2025
by
肖康
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
polyfill
parent
12b2106d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
8 deletions
next.config.mjs
polyfill.js
next.config.mjs
View file @
cd18bef6
/** @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() {
...
...
polyfill.js
0 → 100644
View file @
cd18bef6
if
(
typeof
performance
===
'undefined'
)
{
global
.
performance
=
{
mark
:
()
=>
{},
measure
:
()
=>
{},
getEntriesByName
:
()
=>
[]
};
}
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