Skip to main content

Deploying Your Weaverse Hydrogen Project to Shopify Oxygen

This guide is for Shopify Hydrogen storefronts. Building on Next.js? See the Next.js overview.
Shopify Oxygen is a fully managed, serverless hosting platform for Hydrogen storefronts, offering global CDN, seamless Shopify integration, and zero infrastructure management. Deploying to Oxygen is the recommended way to launch your Weaverse Hydrogen project for maximum performance and reliability.

Prerequisites

  • Shopify store (Plus plan for multiple storefronts; one storefront for non-Plus)
  • Weaverse Hydrogen project ready in a GitHub repository
  • Shopify CLI 4.4.0 or later (install guide). Hydrogen 2026.10 themes such as Pilot list @shopify/cli as a dev dependency (Pilot uses ^4.9.4); older versions, including every 3.x release, can’t deploy them
  • GitHub account connected to your Shopify store
  • Weaverse Project ID (from Weaverse Studio)

Deployment Steps

1. Install the Hydrogen App

Visit the Shopify Hydrogen App and install it in your Shopify store.

2. Create a GitHub Repository

  • Existing Project: Commit and push your code to a new GitHub repository.
  • New Project: Use the Weaverse Hydrogen template to create a new repo.
If your code came from the Pilot repo (template or git clone), delete its .github folder before connecting. Those workflows deploy Pilot’s own demo and run Weaverse’s CI and code review, so they fail without Weaverse’s secrets. The Hydrogen app adds the oxygen-deployment-*.yml workflow your storefront needs in step 6. Projects created with npx @weaverse/cli create don’t include the folder.

3. Set Up Your Storefront

In your Shopify admin, open the Hydrogen app and click “Create storefront” to begin setup.

4. Connect to Your Repository

Connect with Weaverse Pilot Repo
  • Select “Set up GitHub continuous deployment now.”

5. Configure the Environment

  • Wait for the Hydrogen app to create a pull request in your repo.
  • In “Storefront settings,” go to “Environments and variables.”
  • Add the WEAVERSE_PROJECT_ID (from Weaverse Studio’s Project Settings or project URL). Weaverse Hydrogen env setup
  • Add any other required environment variables (see Environment Variables).

6. Merge the Pull Request

  • Merge the PR created by the Hydrogen app to set up GitHub Actions for Oxygen deployment.
  • If you merge before adding WEAVERSE_PROJECT_ID, trigger a manual rebuild (npx shopify hydrogen deploy). Hydrogen pull request Hydrogen GitHub pull request

7. Publish Your Storefront & Update Weaverse Preview URL

After the deployment finishes, check which environment URL you plan to use. A Studio timeout does not tell you whether that URL is private. If the storefront asks for a customer or B2B account, follow Sign-In and Cookies. You don’t need to change hosting or turn off customer sign-in to try those steps. If Oxygen asks for Shopify staff sign-in, or the environment’s URL privacy is confirmed Private, see Private Oxygen Environment for the operator steps, plan limits and alternatives.
Making an environment public removes Oxygen’s staff gate for anyone with the URL. Only do this with the store owner’s approval. The storefront’s own customer sign-in is separate and should stay in place.
To select the deployed preview in Studio:
  1. Copy the intended environment or deployment URL.
  2. In Studio, open Manage previews from the preview URL selector.
  3. Add or update the URL and select it as the active preview.
  4. If the preview message is still visible, choose Check again. See Preview Connection Errors if it still doesn’t connect.

Custom Domain

After deploying to Oxygen, connect your own domain to the Hydrogen storefront. See the Custom Domain & DNS Setup guide for detailed instructions.

Troubleshooting

  • Missing environment variables: Ensure all required variables (like WEAVERSE_PROJECT_ID) are set before merging the PR.
  • Build or deploy errors: Check the GitHub Actions logs for details. Re-run the workflow after fixing issues.
  • Shopify staff sign-in: Check the environment’s URL privacy before deciding whether it should be public.
  • Preview not updating: Make sure the Weaverse Preview URL is set to your Oxygen deployment.

Best Practices

  • Keep secrets out of version control: Use environment variables for all sensitive data.
  • Test locally before deploying: Run your Hydrogen app with the same environment variables as production.
  • Monitor logs after deployment: Use GitHub Actions and Shopify dashboards to monitor for errors.
  • Review environment variables regularly: Remove unused variables and update as your project evolves.
  • Set a Content Security Policy: see Content Security Policy for Hydrogen’s CSP helper and the Weaverse Studio directives

Summary

Deploying your Weaverse Hydrogen project to Shopify Oxygen gives you a secure, scalable, and high-performance storefront. Follow the steps and best practices above for a smooth launch.

Additional Resources

Last modified on November 24, 2026