Toggle the privacy of preview URLs
By default, every Oxygen deployment is private, which means you need to be logged into your Shopify store to view them. You can set a deployment to be public, which means that anyone who knows the deployment URL can view it.
Updating the status of a deployment can take up to 15 seconds.
Toggle the privacy of an environment URL
Anchor link to section titled "Toggle the privacy of an environment URL"Making an environment public means that all deployments to that environment will be public. The number of public environments you can have is based your Shopify plan.
- From your Shopify admin, under Sales channels, click Hydrogen.
- In the Hydrogen storefronts interface, select the storefront that you want to change.
- Beside an environment name, click
…
. - Click Edit environment.
- Under URL privacy, select Public or Private.
- Click Save.
Toggle the privacy of a deployment URL
Anchor link to section titled "Toggle the privacy of a deployment URL"- From your Shopify admin, under Sales channels, click Hydrogen.
- In the Hydrogen storefronts interface, select the storefront that you want to change.
- Under an environment, click the deployment that you want to update.
- Click Actions.
- Click Make deployment public or Make deployment private.
Make a deployment temporarily public
Anchor link to section titled "Make a deployment temporarily public"You can make deployments public for a set period of time, after which they revert to private.
- From your Shopify admin, under Sales channels, click Hydrogen.
- In the Hydrogen storefronts interface, select the storefront that you want to change.
- Under an environment, click the Git commit deployment that you want to share.
- Click Actions.
- Click Make deployment temporarily public.
- Select how long to make the deployment public.
- Click Save.
Robots.txt overrides for public preview deployments
Anchor link to section titled "Robots.txt overrides for public preview deployments"If you set a custom environment or preview deployment to public, then Oxygen overrides the robots.txt
file with a disallow
rule for all bots and crawlers. This helps prevent search engines from serving duplicate results or exposing site content prematurely. Learn more about Hydrogen SEO.
- Learn how to troubleshoot Oxygen deployments by accessing runtime logs and downloading worker bundles for deployments.