Netlify: resolving automatic redirection on page

Asked 2 years ago, Updated 2 years ago, 85 views

Hi, everyone.

I don't know when I run a small project, but when I deploy it to netlife and reload it from a specific url, it automatically connects to an api server that automatically shoots information from that specific url. If I reload, of course I shouldn't go into the API server.

The _redirects file, which is created and built together with the netlife distribution file, was created as follows: For your information, docs.

/* https://api.herokuapp.com/:splat 301

If you look at the API document, there are some http status. So I changed my condition, and the results were the same. I'll be waiting for the reply.

Thank you.

heroku netlify

2022-09-22 10:16

1 Answers

In addition to the netlife settings file _redirect file, you should also check other proxy-related settings. For example, if you are using a CRA, you should check package.json and import proxy from package.json to see if there are any unused parts. Note that the proxy information in package.json is automatically recognized without import.


2022-09-22 10:16

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.