Spaces:
Build error
Build error
Upload next.config.js with huggingface_hub
Browse files- next.config.js +1 -22
next.config.js
CHANGED
|
@@ -2,28 +2,7 @@
|
|
| 2 |
const nextConfig = {
|
| 3 |
reactStrictMode: true,
|
| 4 |
output: 'standalone',
|
| 5 |
-
|
| 6 |
-
async headers() {
|
| 7 |
-
return [
|
| 8 |
-
{
|
| 9 |
-
source: '/(.*)',
|
| 10 |
-
headers: [
|
| 11 |
-
{
|
| 12 |
-
key: 'X-Content-Type-Options',
|
| 13 |
-
value: 'nosniff',
|
| 14 |
-
},
|
| 15 |
-
{
|
| 16 |
-
key: 'X-Frame-Options',
|
| 17 |
-
value: 'DENY',
|
| 18 |
-
},
|
| 19 |
-
{
|
| 20 |
-
key: 'X-XSS-Protection',
|
| 21 |
-
value: '1; mode=block',
|
| 22 |
-
},
|
| 23 |
-
],
|
| 24 |
-
},
|
| 25 |
-
];
|
| 26 |
-
},
|
| 27 |
};
|
| 28 |
|
| 29 |
module.exports = nextConfig;
|
|
|
|
| 2 |
const nextConfig = {
|
| 3 |
reactStrictMode: true,
|
| 4 |
output: 'standalone',
|
| 5 |
+
trailingSlash: true,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
};
|
| 7 |
|
| 8 |
module.exports = nextConfig;
|