diff --git a/packages/app/public/actions.json b/packages/app/public/actions.json new file mode 100644 index 00000000..abda247d --- /dev/null +++ b/packages/app/public/actions.json @@ -0,0 +1,8 @@ +{ + "rules": [ + { + "pathPattern": "/**", + "apiPath": "https://blink.sunrisestake.com/api/actions/stake" + } + ] +} diff --git a/vercel.json b/vercel.json index 430a5031..907bb66b 100644 --- a/vercel.json +++ b/vercel.json @@ -1,5 +1,28 @@ { "installCommand": "yarn install --network-concurrency 2", "buildCommand": "yarn build", - "outputDirectory": "packages/app/build" + "outputDirectory": "packages/app/build", + "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" + } + ] + } + ] }