Shopify platform
Oxygen
Oxygen is Shopify's global hosting platform for Hydrogen storefronts. It runs your storefront code on a worker network close to shoppers, handles preview deployments per branch, and is included with a Shopify plan — so a headless build does not need separate hosting. It only runs Hydrogen; other frameworks host elsewhere.
Why it matters
Oxygen removes the two arguments that used to sink headless proposals: hosting cost and hosting complexity. When a headless build meant a separate platform contract, a separate bill, and a separate operational surface, the total cost of the decision was easy to underestimate and easy to challenge. Bundling the hosting into the Shopify plan takes that line off the estimate.
The second gain is less obvious and matters more day to day: a preview deployment per branch. Every change gets a real URL running real store data, which means design review, client sign-off, and QA happen on the actual thing rather than on a local machine or a screenshot. On a project with a client review cycle, that changes how fast work moves.
How it works on Shopify
Oxygen runs storefront code on a worker network, executing close to the shopper rather than in one region. For a global store that removes a chunk of latency before any application-level optimisation.
It is wired to your git repository. A push builds and deploys; a branch gets its own preview URL; production is a promotion rather than a separate process. Environment variables are managed per environment in the Shopify admin, and the Storefront API connection is configured for you rather than assembled by hand.
The constraint worth knowing up front is that Oxygen only runs Hydrogen. A storefront built in Next.js, Astro, or anything else hosts elsewhere — which is a legitimate choice, just not one that comes with the included hosting.
Because it is a worker runtime rather than a Node server, code that assumes a full Node environment needs checking. Most libraries are fine; some are not, and finding out during the build is better than during launch week.
Common mistakes
- Choosing the framework before the hosting. Picking Next.js and then discovering the included hosting does not apply is a budget conversation nobody enjoys having late.
- Assuming worker equals Node. Long-running processes, native modules, and filesystem access do not translate. Audit dependencies early.
- No caching strategy. Running close to the shopper does not help if every request waits on an uncached API round trip.
- Treating previews as staging. A branch preview points at real store data. It is for review, not for destructive testing — that is what a staging store is for.
- Leaving secrets in the repository. Environment variables belong in the Oxygen environment configuration, not in committed files.
When you need help
Most Oxygen work is undramatic once the storefront exists. The moment worth outside input is the platform decision itself: whether Hydrogen on Oxygen or a self-hosted framework fits the team, weighed on who maintains it rather than on which stack is more interesting.
The other case is a storefront already on Oxygen that is slower than expected. That is nearly always caching — routes without directives, or an over-aggressive strategy serving stale prices — and it is diagnosable, but it needs someone who can read the cache behaviour rather than guess at it.
Need this done on your store?
Shopify developmentRelated terms
- HydrogenHydrogen is Shopify's React framework for building headless (custom) storefronts. Built on Remix, it ships commerce-specific primitives — cart, product, and analytics hooks, plus Storefront API clients — so teams do not rebuild them. Hydrogen storefronts are typically deployed to Oxygen, Shopify's hosting, at no extra cost.
- Headless commerceHeadless commerce is an architecture that decouples the storefront a shopper sees from the commerce engine behind it, connecting the two over an API. On Shopify that means building the frontend in a framework such as Next.js or Hydrogen and calling the Storefront API, instead of rendering Liquid themes. It buys design and performance freedom at the cost of a system you must now build and maintain yourself.