Ezequield commited on
Commit
27c5e29
·
verified ·
1 Parent(s): 9bacd63

Upload next.config.js with huggingface_hub

Browse files
Files changed (1) hide show
  1. next.config.js +20 -0
next.config.js ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /** @type {import('next').NextConfig} */
2
+ const nextConfig = {
3
+ reactStrictMode: true,
4
+ // Configure headers for HuggingFace Spaces
5
+ async headers() {
6
+ return [
7
+ {
8
+ source: '/:path*',
9
+ headers: [
10
+ {
11
+ key: 'Access-Control-Allow-Origin',
12
+ value: '*',
13
+ },
14
+ ],
15
+ },
16
+ ];
17
+ },
18
+ }
19
+
20
+ module.exports = nextConfig