Skip to content

Commit 7906c7f

Browse files
authored
Merge pull request #3 from mecirmartin/main
added Vercel.json, added @ts-ignore to pass deployment warnings
2 parents 414b4ae + 5aa6954 commit 7906c7f

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

src/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import React from "react";
22
import ReactDOM from "react-dom";
33
import App from "./App";
44

5+
//@ts-ignore
56
if(!window.__skip_render){
67
ReactDOM.render(<App />, document.getElementById("root"));
78
}

vercel.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
2+
{
3+
"headers": [
4+
{
5+
"source": "/api/(.*)",
6+
"headers": [
7+
{ "key": "Access-Control-Allow-Credentials", "value": "true" },
8+
{ "key": "Access-Control-Allow-Origin", "value": "*" },
9+
{
10+
"key": "Access-Control-Allow-Methods",
11+
"value": "GET,OPTIONS,PATCH,DELETE,POST,PUT"
12+
},
13+
{
14+
"key": "Access-Control-Allow-Headers",
15+
"value": "X-CSRF-Token, X-Requested-With, Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, X-Api-Version"
16+
}
17+
]
18+
}
19+
]
20+
}

0 commit comments

Comments
 (0)