Manage storefronts
You can use Oxygen to manage different versions of Hydrogen storefronts through the Hydrogen channel.
This guide describes how to connect a Hydrogen storefront to a Hydrogen Git repository, and how to delete unneeded storefronts.
Requirements
Anchor link to section titled "Requirements"- You've added the Hydrogen channel to your store.
- You've installed the Shopify GitHub app.
- You're familiar with the concept of storefronts.
Connect a Hydrogen storefront
Anchor link to section titled "Connect a Hydrogen storefront"Depending on whether you already have an existing Hydrogen Git repository, you can do one of the following tasks:
- Create and connect a new Hydrogen Git repository
- Connect a Hydrogen storefront to an existing Hydrogen Git repository
Create and connect a new Hydrogen Git repository
Anchor link to section titled "Create and connect a new Hydrogen Git repository"- From your Shopify admin, under Sales channels, click Hydrogen.
- In the Hydrogen storefronts interface, click Create storefront.
- Under Account, select an account that will own the Hydrogen Git repository.
- Under Repository, type the name for the new Hydrogen Git repository.
- Optional: Check Create as a public repository.
- Click Create.
Connect a Hydrogen storefront to an existing Hydrogen Git repository
Anchor link to section titled "Connect a Hydrogen storefront to an existing Hydrogen Git repository"If you've already created a Git repository with Hydrogen storefront code, then you can connect the Git repository to a Hydrogen storefront. You can connect a Hydrogen Git repository to multiple storefronts or stores.
- From your Shopify admin, under Sales channels, click Hydrogen.
- In the Hydrogen storefronts interface, click Create storefront.
- Click Connect an existing repository.
- Under Account, select the account that owns the Hydrogen Git repository.
- Under Repository, select the repository that contains the Hydrogen storefront code.
- Click Connect.
Delete a Hydrogen storefront
Anchor link to section titled "Delete a Hydrogen storefront"- From your Shopify admin, under Sales channels, click Hydrogen.
- In the Hydrogen storefronts interface, select the storefront that you want to delete.
- Click Storefront settings.
- Click Delete storefront.
Custom domains
Anchor link to section titled "Custom domains"For information about assigning a domain name to a Hydrogen storefront, ensure that you've installed the Hydrogen channel, and then refer to Change a domain target.
- Learn how to create custom environments and use them to preview changes without affecting other environments.
- Learn how to create environment variables and use them to store reusable data for use in the Hydrogen storefront code.