Spaces:
Sleeping
Sleeping
Update frontend/next.config.js
Browse files- frontend/next.config.js +15 -7
frontend/next.config.js
CHANGED
|
@@ -1,8 +1,16 @@
|
|
| 1 |
-
/
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 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
|