Spaces:
Build error
Build error
Upload next.config.js with huggingface_hub
Browse files- next.config.js +19 -0
next.config.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
/** @type {import('next').NextConfig} */
|
| 2 |
+
const nextConfig = {
|
| 3 |
+
output: 'standalone',
|
| 4 |
+
reactStrictMode: true,
|
| 5 |
+
images: {
|
| 6 |
+
domains: ['localhost'],
|
| 7 |
+
unoptimized: true,
|
| 8 |
+
},
|
| 9 |
+
async rewrites() {
|
| 10 |
+
return [
|
| 11 |
+
{
|
| 12 |
+
source: '/api/generate',
|
| 13 |
+
destination: process.env.BACKEND_URL || 'http://localhost:7861/api/generate',
|
| 14 |
+
},
|
| 15 |
+
];
|
| 16 |
+
},
|
| 17 |
+
};
|
| 18 |
+
|
| 19 |
+
module.exports = nextConfig;
|