Supported frameworks
The agent detects your framework and CMS, then applies the right kind of patch (e.g. wrap a return, add a transform option, or wrap a loader).
Nuxt 3
- Pages / composables —
useAsyncData,useFetch. Agent adds atransformoption that runs the response transformer withcmsAssetsUrlfromuseRuntimeConfig().public.cmsAssetsUrl. It can injectruntimeConfig.public.cmsAssetsUrlinnuxt.configif missing. - Server routes —
server/api/**andserver/routes/**— return statements that return CMS data are wrapped with the transformer.
Nuxt 2
- Pages —
asyncDatahook: the return value inside the hook is wrapped. - Vuex store — Actions that fetch CMS data and
returnorcommitthat data: agent can wrap the return or the value passed tocommit('SET_STATE', { value: ... }).
Next.js
- API routes —
app/api/**/route.tsorpages/api/**—returnorres.json()that return CMS data are wrapped. - getServerSideProps / getStaticProps — Return value is wrapped.
- App Router lib — Return statements in
lib/(or similar) that return CMS data are detected. App Router page components are not auto-patched (too many edge cases); prefer API or lib layer.
Remix
- Loaders — Return value of
loaderis wrapped with the transformer.
Astro
- Frontmatter — Assignments like
const data = await fetch(...)in the frontmatter block are wrapped so the fetched data is transformed before use.
SvelteKit
- Load —
+page.server.ts/+layout.server.ts: return value ofloadis wrapped. - Lib — Return statements in
src/lib/that return CMS data are supported.
Express / Hono / Fastify
- Route handlers — Handlers that return JSON (e.g.
res.json(data)) are detected; the agent wraps the value passed tores.json(...)(or equivalent) with the transformer.
CMS detection
The agent looks for common CMS SDK usage (Prismic, Contentful, Sanity, Shopify, Cloudinary, Imgix) in your code. It also detects generic S3, R2, and GCS origin patterns automatically. You can override with --cms prismic (or contentful, sanity, shopify, cloudinary, imgix, generic) if auto-detection is wrong or you want to force a specific CMS type.
✦
Need help understanding this?Ask CMS Assets Copilot about features, setup, or integrations.
Ask Copilot →