Changing a domain target
You can change the target for a domain. Changing targets is only available for stores using Hydrogen custom storefronts.
Considerations for changing the target for a domain
Before you change the target for a domain, review the following considerations:
Changing the target doesn't change the domain type. For example, if a domain's type was
redirect
before you changed the target, then it continues to be aredirect
type after.If you change the primary domain for a custom domain from one target to a different target, then the primary domain for the previous target reverts to the
myshopify.com
domain name. For example, if you change the target forjohnsapparel.com
from an online store to a custom storefront, then the primary domain name for the online store reverts tojohnsapparel.myshopify.com
.Domains can only be assigned to a target that is in a production environment that is public.
Change a domain target
From your Shopify admin, go to Settings > Domains.
Click the domain whose target you want to change.
Click Change target.
From the Target list, select the name of the target.
Click Save.
The domain now points to the target that you selected.