Spaces:
Build error
Build error
Upload next.config.js with huggingface_hub
Browse files- next.config.js +8 -0
next.config.js
CHANGED
|
@@ -5,6 +5,14 @@ const nextConfig = {
|
|
| 5 |
images: {
|
| 6 |
domains: ['huggingface.co'],
|
| 7 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
};
|
| 9 |
|
| 10 |
module.exports = nextConfig;
|
|
|
|
| 5 |
images: {
|
| 6 |
domains: ['huggingface.co'],
|
| 7 |
},
|
| 8 |
+
async rewrites() {
|
| 9 |
+
return [
|
| 10 |
+
{
|
| 11 |
+
source: '/api/:path*',
|
| 12 |
+
destination: '/api/:path*',
|
| 13 |
+
},
|
| 14 |
+
];
|
| 15 |
+
},
|
| 16 |
};
|
| 17 |
|
| 18 |
module.exports = nextConfig;
|