We want to automate preview branches but our backend systems require the same domain for sessions and cookies to work properly. Instead of building preview branches to https://pr-299.d3ka6awcf02t21.amplifyapp.com we want them to map to our custom domain:
https://pr-299.d3ka6awcf02t21.customdomain.com
Is this possible currently, and if not is it something we can request?
@Munsterberg currently it isn't available. We are working on a capability to support automatic subdomains for PRs (so you can get https://pr-299.customdomain.com automatically)
@Munsterberg currently it isn't available. We are working on a capability to support automatic subdomains for PRs (so you can get
https://pr-299.customdomain.comautomatically)
Good to know that this will be supported. Do we have any timeline for this feature?
We use Amplify console for our application as well(which works like a charm) and since we use cookies with a particular domain, this feature would be really helpful for pre-testing phase.
@NehaBharadwaj14 @Munsterberg this feature is now supported: https://aws.amazon.com/blogs/mobile/automatically-create-and-delete-custom-sub-domains-for-your-branch-deployments-with-amplify-console/
@swaminator Does the feature you listed above also work for multi-level subdomains? For example
https://pr-123.customsubdomain.customdomain.com. We have been having trouble trying to configure it this way.
@julieReitter Yes. You can register the root domain as customsubdomain.customdomain.com and enable autosubdomain feature for PR branch.
Most helpful comment
@Munsterberg currently it isn't available. We are working on a capability to support automatic subdomains for PRs (so you can get
https://pr-299.customdomain.comautomatically)