@ruvyxa/adapter-cloudflare
v1.1.5
Published
Shape Ruvyxa builds for Cloudflare edge targets with typed worker and asset output metadata.
Downloads
1,760
Maintainers
Readme
Install
npm install @ruvyxa/adapter-cloudflareUsage
import { config } from 'ruvyxa/config'
import { cloudflare } from '@ruvyxa/adapter-cloudflare'
export default config({
adapter: cloudflare(),
})Deployment Artifact
{
"name": "cloudflare",
"target": "edge",
"platform": "cloudflare",
"entry": ".ruvyxa/server/app",
"assetsDir": ".ruvyxa/assets",
"clientDir": ".ruvyxa/client",
"chunkManifest": ".ruvyxa/client/chunk-manifest.json",
"configFiles": ["wrangler.jsonc"]
}ruvyxa build creates .ruvyxa/deploy/cloudflare/ with a Workers handler, assets/, and
wrangler.jsonc. Deploy that directory with Wrangler/Cloudflare Workers.
This adapter supports SSR, API, SSG, and CSR routes via the Edge runtime (--target edge). ISR and
PPR are rejected because the assets binding is read-only and the adapter does not configure a
persistent KV or Durable Object cache. Static assets are served through the assets binding; dynamic
routes use compiled edge modules loaded from a static registry in the Worker bundle.
Validated built-in middleware is embedded into the Worker and runs with Fetch/Web APIs—CORS, rate
limiting, timing, logging, and custom response headers therefore match the native server without
Node.js polyfills. When image.onDemand is enabled, the Worker delegates same-origin image
transforms to Cloudflare's fetch(..., { cf: { image } }); the Cloudflare account must have image
transformations enabled.
