Licence
MIT
Version
0.0.0
Deps
0
Vulns
0
Weekly
0
@implementjs/adapter-cloudflare
Builds an implement kit app into a Cloudflare worker with static assets beside it.
npm install -D @implementjs/adapter-cloudflare
// vite.config.ts
import adapter from "@implementjs/adapter-cloudflare";
import { kit } from "@implementjs/kit";
import { defineConfig } from "vite";
export default defineConfig({
plugins: [kit({ adapter: adapter() })],
});
vite build writes the worker and its assets into dist/, with a _routes.json that keeps
the hashed asset directory away from the worker so static files are served without waking
it.
Full documentation: implementjs.dev/kit/adapters