Spaces:
Build error
Build error
Upload next.config.js with huggingface_hub
Browse files- next.config.js +28 -0
next.config.js
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/** @type {import('next').NextConfig} */
|
| 2 |
+
const nextConfig = {
|
| 3 |
+
reactStrictMode: true,
|
| 4 |
+
swcMinify: true,
|
| 5 |
+
output: 'standalone',
|
| 6 |
+
images: {
|
| 7 |
+
unoptimized: true
|
| 8 |
+
},
|
| 9 |
+
async headers() {
|
| 10 |
+
return [
|
| 11 |
+
{
|
| 12 |
+
source: '/:path*',
|
| 13 |
+
headers: [
|
| 14 |
+
{
|
| 15 |
+
key: 'Cross-Origin-Embedder-Policy',
|
| 16 |
+
value: 'require-corp',
|
| 17 |
+
},
|
| 18 |
+
{
|
| 19 |
+
key: 'Cross-Origin-Opener-Policy',
|
| 20 |
+
value: 'same-origin',
|
| 21 |
+
},
|
| 22 |
+
],
|
| 23 |
+
},
|
| 24 |
+
];
|
| 25 |
+
},
|
| 26 |
+
}
|
| 27 |
+
|
| 28 |
+
module.exports = nextConfig
|