peter288 commited on
Commit
77b3d81
·
verified ·
1 Parent(s): 178f666

Update frontend/next.config.js

Browse files
Files changed (1) hide show
  1. frontend/next.config.js +15 -7
frontend/next.config.js CHANGED
@@ -1,8 +1,16 @@
1
- /​**​ @type {import('next').NextConfig} */
2
- const nextConfig = {
3
- reactStrictMode: true,
4
- // 启用静态导出以便在Hugging Face Space上部署
5
- output: 'export',
6
- }
7
-
 
 
 
 
 
 
 
 
8
  module.exports = nextConfig
 
1
+ // 确保从这里复制,以避免不可见字符问题
2
+ /** @type {import('next').NextConfig} */
3
+ const nextConfig = {
4
+ reactStrictMode: true,
5
+ // 启用静态导出以便在Hugging Face Space上部署
6
+ output: 'export',
7
+ // 关闭 eslint 和 typescript 检查可以加速构建,尤其是在调试时
8
+ eslint: {
9
+ ignoreDuringBuilds: true,
10
+ },
11
+ typescript: {
12
+ ignoreBuildErrors: true,
13
+ },
14
+ }
15
+
16
  module.exports = nextConfig