diff --git a/netlify.toml b/netlify.toml index 3fc2fb7e908..e1fc8aa2626 100644 --- a/netlify.toml +++ b/netlify.toml @@ -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"} \ No newline at end of file +from = "/api/*" +to = "https://careapi.coronasafe.in/api/:splat" +status = 200 +force = true + +[[redirects]] +from = "/*" +to = "/index.html" +status = 200