Spaces:
Runtime error
Runtime error
Upload next.config.js with huggingface_hub
Browse files- next.config.js +21 -0
next.config.js
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/** @type {import('next').NextConfig} */
|
| 2 |
+
const nextConfig = {
|
| 3 |
+
reactStrictMode: true,
|
| 4 |
+
env: {
|
| 5 |
+
NEXT_PUBLIC_URL: process.env.NEXT_PUBLIC_URL || 'http://localhost:3000',
|
| 6 |
+
},
|
| 7 |
+
async headers() {
|
| 8 |
+
return [
|
| 9 |
+
{
|
| 10 |
+
source: '/:path*',
|
| 11 |
+
headers: [
|
| 12 |
+
{ key: 'Access-Control-Allow-Origin', value: '*' },
|
| 13 |
+
{ key: 'Access-Control-Allow-Methods', value: 'GET,OPTIONS,PATCH,DELETE,POST,PUT' },
|
| 14 |
+
{ key: 'Access-Control-Allow-Headers', value: 'X-CSRF-Token, X-Requested-With, Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, X-Api-Version' },
|
| 15 |
+
],
|
| 16 |
+
},
|
| 17 |
+
];
|
| 18 |
+
},
|
| 19 |
+
}
|
| 20 |
+
|
| 21 |
+
module.exports = nextConfig
|