Skip to main content
After deploying your Hydrogen storefront to Oxygen, you’ll need to connect a custom domain so customers can access your store at your own URL (e.g., yourdomain.com). This guide walks through adding the domain in Shopify, pointing it to your Hydrogen storefront, configuring DNS records, and giving checkout its own subdomain.
This guide uses Cloudflare as the DNS provider for examples, but the same DNS records apply to any provider (GoDaddy, Namecheap, Route 53, etc.). The key difference is where you create the records and how you disable proxying.

Prerequisites

  • A Hydrogen storefront deployed to Oxygen, with a public production environment. Development stores and trial plans can’t make an environment public.
  • A registered domain name
  • Access to your domain’s DNS management panel
Hosting somewhere else (Docker, Cloudflare Workers)? Point your primary domain at that host following its documentation. Only the checkout subdomain (Step 4 below) points to Shopify.

Step 1 — Add Domain in Shopify Admin

1

Open domain settings

Go to Shopify Admin → Settings → Domains.
2

Connect your domain

Click Connect existing domain and enter your domain (e.g., yourdomain.com).
Shopify Admin - Connect existing domain

Step 2 — Point Domain to Hydrogen

Once the domain appears in your domain list:
1

Select your domain

Click on your domain name in the domains list.
2

Change the target

Change the target from Online Store to your production Hydrogen storefront.
3

Make it primary

Set the domain type to Primary. Do the same for any other domain that should serve the storefront.
This step is critical. If the domain still points to the Online Store, visitors will see the Liquid theme instead of your Hydrogen app.

Step 3 — Configure DNS Records

Log in to your DNS provider’s dashboard and create the following records. Delete any other A and AAAA records on the root domain: Shopify allows only one of each.

Root Domain

If your provider rejects the shortened IPv6 address, enter it in full: 2620:0127:f00f:0005:0000:0000:0000:0000.

WWW Subdomain

Keep the default TTL.
Cloudflare users: set every record that points to Shopify to DNS only (grey cloud). Shopify doesn’t support Cloudflare’s proxy, so a proxied record blocks the connection and SSL provisioning. Also delete any wildcard record that points to Shopify, and make sure your CAA records (if any) allow Let’s Encrypt, Google and SSL.com.

Step 4 — Add a Checkout Subdomain

Checkout stays on Shopify, so it needs its own subdomain, such as checkout.yourdomain.com.
1

Connect the subdomain

In Settings → Domains, click Connect existing domain and enter the subdomain.
2

Add its DNS record

Create a CNAME record for the subdomain (for example checkout) pointing to shops.myshopify.com, with the proxy OFF.
3

Set its target

Set the subdomain’s target to Online Store and its type to Primary.

Step 5 — Verify the Connection

After updating your DNS records:
1

Wait for propagation

DNS changes typically take 5–30 minutes to propagate, though in some cases it can take up to 48 hours.
2

Verify in Shopify

Go back to Shopify Admin → Settings → Domains and check that your domain shows as Connected.
3

SSL certificate

Shopify will automatically provision an SSL certificate for your domain. This may take a few additional minutes after DNS verification completes.

Troubleshooting

  • Double-check the A (23.227.38.65) and AAAA (2620:0127:f00f:5::) records on @, and the www CNAME to shops.myshopify.com
  • Ensure DNS proxy is disabled (Cloudflare users: grey cloud, not orange)
  • Wait up to 48 hours for full DNS propagation
  • Try removing and re-adding the domain in Shopify
  • Verify that Cloudflare proxy is OFF (DNS only / grey cloud). This is the most common cause
  • Ensure no other A or AAAA records exist on the root domain, and no wildcard record points to Shopify
  • If the domain has CAA records, make sure they allow Let’s Encrypt, Google and SSL.com
  • Check that your domain registrar hasn’t locked DNS changes
  • Wait up to 24 hours — Shopify retries SSL provisioning periodically
  • Go to Shopify Admin → Settings → Domains → click your domain
  • Confirm the target is set to your Hydrogen storefront, not Online Store
  • This usually means a Shopify record is still proxied through Cloudflare (orange cloud)
  • Set every record that points to Shopify to DNS only. Shopify doesn’t support Cloudflare’s proxy, so changing the SSL/TLS mode is not a fix

Next Steps

Last modified on November 23, 2026