-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Blinks actions.json to app and overwrite it's headers via vercel.…
…config
- Loading branch information
1 parent
21e1c33
commit 1c22607
Showing
2 changed files
with
37 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"rules": [ | ||
{ | ||
"pathPattern": "/**", | ||
"apiPath": "https://blink.sunrisestake.com/api/actions/stake" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,33 @@ | ||
{ | ||
"installCommand": "yarn install --network-concurrency 2", | ||
"buildCommand": "yarn build", | ||
"outputDirectory": "packages/app/build" | ||
"outputDirectory": "packages/app/build", | ||
"projects": [ | ||
{ | ||
"path": "packages/app", | ||
"headers": [ | ||
{ | ||
"source": "/actions.json", | ||
"headers": [ | ||
{ | ||
"key": "Access-Control-Allow-Origin", | ||
"value": "*" | ||
}, | ||
{ | ||
"key": "Access-Control-Allow-Methods", | ||
"value": "GET,POST,PUT,OPTIONS" | ||
}, | ||
{ | ||
"key": "Access-Control-Allow-Headers", | ||
"value": "Content-Type, Authorization, Content-Encoding, Accept-Encoding" | ||
}, | ||
{ | ||
"key": "Content-Type", | ||
"value": "application/json" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] | ||
} |