DEV Community

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

Collapse
 
leonardosnt profile image
Leonardo Santos

I think the easiest way would be to "move" your domain to Netlify and use it's proxy feature to proxy the API requests to Heroku. You could also use a subdomain for the API, instead of using the proxy.

Collapse
 
cavingayle profile image
Cavin Gayle

Thanks so much man!

Collapse
 
rocktimsaikia profile image
Rocktim Saikia

Thanks for the response. I looked at the docs and that seems to be the solution. Even tho I have not tried it yet. I Will let you know if I can get it to work.
Anyway, Thank you very much 🚀
Can I reach out to you if I need any further help with this topic?

Collapse
 
leonardosnt profile image
Leonardo Santos

Sure. There's an email on my GitHub profile if you need.

Thread Thread
 
rocktimsaikia profile image
Rocktim Saikia

Great :)