Hydrogen Gateway 1 Jun 2026

The gateway will be a standard Request/Response handler exported from the entry server file.

export default async fetch(request, env, ctx) // 1. Gateway processes the request const processedRequest = await gateway.intercept(request, env); hydrogen gateway 1

Within the React components, developers can access this injected context via the Remix useLoaderData hook or a dedicated context provider. The gateway will be a standard Request/Response handler

match: cookie: 'vip_status=true' , inject: tier: 'vip', discount: 0.20 , Within the React components