Spaces:
Sleeping
Sleeping
Upload next.config.js with huggingface_hub
Browse files- next.config.js +27 -0
next.config.js
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/** @type {import('next').NextConfig} */
|
| 2 |
+
const nextConfig = {
|
| 3 |
+
reactStrictMode: true,
|
| 4 |
+
swcMinify: true,
|
| 5 |
+
images: {
|
| 6 |
+
domains: ['i.imgur.com', 'via.placeholder.com'],
|
| 7 |
+
},
|
| 8 |
+
async headers() {
|
| 9 |
+
return [
|
| 10 |
+
{
|
| 11 |
+
source: '/(.*)',
|
| 12 |
+
headers: [
|
| 13 |
+
{
|
| 14 |
+
key: 'X-Content-Type-Options',
|
| 15 |
+
value: 'nosniff',
|
| 16 |
+
},
|
| 17 |
+
{
|
| 18 |
+
key: 'X-Frame-Options',
|
| 19 |
+
value: 'DENY',
|
| 20 |
+
},
|
| 21 |
+
],
|
| 22 |
+
},
|
| 23 |
+
];
|
| 24 |
+
},
|
| 25 |
+
};
|
| 26 |
+
|
| 27 |
+
module.exports = nextConfig;
|