Skip to content

Commit

Permalink
Add Blinks actions.json to app and overwrite it's headers via vercel.…
Browse files Browse the repository at this point in the history
…config
  • Loading branch information
ronnyhaase committed Jun 28, 2024
1 parent 21e1c33 commit 1c22607
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
8 changes: 8 additions & 0 deletions packages/app/public/actions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"rules": [
{
"pathPattern": "/**",
"apiPath": "https://blink.sunrisestake.com/api/actions/stake"
}
]
}
30 changes: 29 additions & 1 deletion vercel.json
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"
}
]
}
]
}
]
}

0 comments on commit 1c22607

Please sign in to comment.