aws-amplify / aws-amplify/amplify-hosting
Feature request: Allow auto-subdomain creation when root domain is a subdomain
- Dominant language
- Dockerfile
- Stars
- 481
- Forks
- 123
- PR merge metrics
- No merged PRs in 30d
Description
**Is your feature request related to a problem? Please describe.**
In _Domain management_ there is usually a option available called _Subdomain auto-detection_ as seen below:

_(Source: [AWS blog](https://aws.amazon.com/blogs/mobile/automatically-create-and-delete-custom-sub-domains-for-your-branch-deployments-with-amplify-console/))_
This feature is incredibly useful, but when my _root domain_ is a subdomain already (e.g. `https://previews.mealicious.app`) then this auto-detection checkbox doesn't show.
**Describe the solution you'd like**
Please allow enabling _Subdomain auto-detection_ when the root domain is a subdomain.
Contributor guide
Research direction
Start in the Domain management implementation and trace how the Subdomain auto-detection option is currently shown for root domains. Reproduce the case where the root domain is a subdomain, then verify that the option can be enabled and that automatic subdomain handling works correctly for that configuration.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws
- Domain
- cloud
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100