I have express API repository which is currently hosted in Heroku along with its documentation site written in
But now I'm planning on separating the docs website with gatsby and moving it into another repo and hosting it on Netlify while the API service still remains in Heroku.
Here is the end goal :
//example domain: example.com "/" // example.com/ : serves the docs website.(Netlify) "/api" // example.com/api : serves the API services. (Heroku)
Can someone help me with how to implement this in the actual application? I am not very familiar with separating hostings while using the same domain.