Det9999 commited on
Commit
95c04f2
·
verified ·
1 Parent(s): 6325c3a

Upload next.config.js with huggingface_hub

Browse files
Files changed (1) hide show
  1. 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