Skip to content

Commit

Permalink
patch: fix proxy to careapi (ohcnetwork#5121)
Browse files Browse the repository at this point in the history
* patch: fix proxy to `careapi`

* fix netlify.toml and vercel.json
  • Loading branch information
rithviknishad authored Mar 17, 2023
1 parent c1cfd19 commit ae6f003
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ NODE_OPTIONS = "--max_old_space_size=4096"

[[redirects]]
from = "/api/*"
to = "https://carehcxapi.coronasafe.in/api/:splat"
to = "https://careapi.coronasafe.in/api/:splat"
status = 200
force = true

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"coronasafe Contributors"
],
"homepage": "https://care.coronasafe.in",
"proxy": "https://carehcxapi.coronasafe.in",
"proxy": "https://careapi.coronasafe.in",
"main": "./src/index.tsx",
"keywords": [
"Coronasafe",
Expand Down
2 changes: 1 addition & 1 deletion vercel.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"rewrites": [
{
"source": "/api/(.*)",
"destination": "https://carehcxapi.coronasafe.in/api/$1"
"destination": "https://careapi.coronasafe.in/api/$1"
},
{
"source": "/(.*)",
Expand Down

0 comments on commit ae6f003

Please sign in to comment.