TLDR; according to your documentation: “Netlify DNS can automatically turn your deployed branches into their own subdomains.” However, this does NOT appear to be the case. It seems like this is manual-- we must log into the netlify UI and manually do this for every subdomain. Am I missing something?
Longer story: this was all a complicated workaround for us to get around 2 netlify limitiations:
- Deploy preview branches always use netlify.app
- Netlify.app URLs interfere with our credentialed cookies-- the sessionId always gets nuked and our netlify.app deployments log us out of our backend on every reload.
So-- if either of the 2 above items has a fix, you can skip the first question.
Back to the first question: we just registered a new domain JUST so we could get some kind of custom subdomain support for our pull requests or branches.
in.
So-- I’m looking for any way to make this happen automatically… is there some way to configure a custom subdomain when we deploy? Do we need to wait for the branch to deploy the first time to configure the subdomain? Is there any way to have the netlify.app cookies stop interfering with our cookies?
Basically what we want is this:
- Developer opens pull request (but acceptable alternative = we push a new branch)
- Developer does no additional work and in a few minutes we’ve got a netlify site that works properly with our cookies.
We are willing to write some github actions or whatever is needed but we’d like to know how to do it.