@celsian/vura-adapter-cloudflare
v0.5.14
Published
Cloudflare Workers deployment adapter for Vura applications
Maintainers
Readme
@celsian/vura-adapter-cloudflare
Cloudflare Workers adapter for Vura applications.
What it does
@celsian/vura-adapter-cloudflare runs after vura build and generates a wrangler.toml and Worker entry files that wire your API routes to a CelsianJS app running in the Workers runtime. KV, D1, and R2 bindings are configurable. Cloudflare Workers does not support persistent Node.js processes, so routes with kind: 'hot' (WebSocket hot routes) cannot run on Workers — use a self-hosted Node.js server for those. Cloudflare-specific environment bindings and execution context are accessible on the request object as __cf_env and __cf_ctx.
Install
npm install @celsian/vura-adapter-cloudflareMinimal example
vura.config.ts:
import { defineConfig } from '@celsian/vura-core';
import { cloudflareAdapter } from '@celsian/vura-adapter-cloudflare';
export default defineConfig({
adapter: cloudflareAdapter({ name: 'my-vura-app' }),
});Build and preview locally with Wrangler:
vura build
wrangler devDocumentation
vura.io docs site launches with v0.5 — until then, see the repo README and CHANGELOG.
License
MIT — and it will stay MIT.
