FORTY_AGENTIC=1 renders the agentic page at /; every other
route — products, cart, checkout — stays your application’s own. Without the flag
the app builds exactly as before.
Supported: Shopify Hydrogen and Next.js (App Router), React 18.3+.
Integration
The agentic page mounts the SDK:app/forty/route.tsx
The agentic build serves it at
/:
Files added
Deployment and security
Deploy the agentic build as its own environment — a second Oxygen environment or Vercel project, on a domain such asask.example.com — with FORTY_AGENTIC=1 at
build time, then register its origin with forty origin add <url>. Requests from
unregistered origins are rejected.
Your Content Security Policy must allow the AMS API origin in connect-src (https
and wss) and scripts from it. On Hydrogen add it to defaultSrc, not scriptSrc,
which replaces Hydrogen’s defaults and stops the app hydrating.
Block changes ship as releases; component code ships with
your application through your existing pipeline.