loading...

Discussion on: How to host api and frontend sepaparetly while using the same domain ??

Collapse
eruizdechavez profile image
Erick Ruiz de Chavez

In the specific case of Netlify, @leonardosnt already gave you the answer.

In a more general way, what you need to do is called reverse proxy, and it can be easily done with Apache and nginx web servers. It can also be implemented with your own flavor of programming language, to put an example, Redbird is an excellent reverse proxy module for Node.js.

Collapse
rocktimsaikia profile image
Rocktim Saikia Author

thanks for the response 🦄. I really didn't know much about proxies. But after this issue I read a lot of articles on proxies and finally it's making sense. Anyway thanks for these resources :)