I’m getting the usual 404 Page not found error when refreshing the page on my react app. I placed netlify.toml file at the root of my repo containing:
[[redirects]] from = "/*" to = "/index.html" status = 200 [[redirects]] from = "/admin_api/*" to = "https://staging.myapiurl.com/admin_api/:splat" status = 200 [[redirects]] from = "/v1/query/*" to = "https://staging.myapiurl.com/v1/query/:splat" status = 200
Here is link to the website.
Please note that I’m using monorepo, and netlify.toml file is in the root of the repo, though I’m building from subdirectory. API redirects doesn’t work as well.
Any help would be appreciated. Thanks.