Skip to content

Commit

Permalink
Update netlify.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
gigincg committed May 24, 2021
1 parent f42f09a commit 77d5d87
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
## This rule redirects to an external API, signing requests with a secret
[build]
publish = "dist/"

[[redirects]]
from = "/api/*"
to = "https://careapi.coronasafe.in/api/:splat"
status = 301
force = true # COMMENT: ensure that we always redirect
headers = {X-From = "Netlify"}
from = "/api/*"
to = "https://careapi.coronasafe.in/api/:splat"
status = 200
force = true

[[redirects]]
from = "/*"
to = "/index.html"
status = 200

0 comments on commit 77d5d87

Please sign in to comment.