So let’s say i have a domain www.example.com that is with Netlify.
Currently on my main site i have different projects that just have a Link to external hosting site. But i want to move all my projects from external host to Netlify as separate Netlify sites(*netlify.app).
But when entering those sites i don’t to have the default *netlify.app domain on them and want them to have www.example/projects/project_one
Is there a way for me to link these projects to my main site using my main domain?
I’m just unsure, do i need to create two sites for those two projects? Because if i create two sites for them they will have their own domain and not sit under example.com/*?
Yep the routing is working great, only thing i needed to add in my main domain:
[[redirects]]
from = "/app1"
to = "https://determined-curie-bc9b33.netlify.app/"
status = 200
BUT, having issues with axios posting to app1 from my main domain www.marius.dev/app1.
So if you open www.marius.dev/app1 you will see 3 buttons that onClick send post to https://determined-curie-bc9b33.netlify.app but the first two wont work and only the last button will because in axios i have hardcoded my actual domain name.
So is there a way for me to have some kind of variable or maybe something else in config so that between my dev and prod environment i don’t need to think about what variable i need place in axios when doing these type of re-direct/proxy?