Skip to content

Commit

Permalink
adds rewrites for vercel (ohcnetwork#2691)
Browse files Browse the repository at this point in the history
* adds rewrites for vercel

* fix invalid source patter

* try force redirect for /api/*

* revert that
  • Loading branch information
rithviknishad authored Jun 13, 2022
1 parent 37a1a2e commit 8691bdc
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions vercel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"rewrites": [
{
"source": "/api/(.*)",
"destination": "https://careapi.coronasafe.in/api/$1"
},
{
"source": "/(.*)",
"destination": "/index.html"
}
]
}

0 comments on commit 8691bdc

Please sign in to comment.