I am deploying from CLI because my build was failing because the process was being killed by a command using “kill -9”.
I have tried using _redirects (file) as well
I have applied 3 rewrites
I am getting 500 as the status code for the request in the browser
using proxy inside package json
[[redirects]]
from = "/auth/*"
to = "https://example.com/auth/:splat"
status = 200
[[redirects]]
from = "/api/*"
to = "https://example.com/api/:splat"
status = 200
[[redirects]]
from = "/*"
to = "/index.html"
status = 200
We have a blog post for how to setup redirects here:
Note there are two ways, using a _redirect file or a netlify.toml file.
You can also find more information regarding redirects here:
and a Support Guide here:
For the redirects you mentioned, please make sure that the netlify.toml file is in the root directory of your project and is correctly named. Netlify expects this file to be in the root directory to read and apply the rules.