Integrations · Framework × host

Hono on Cloudflare Workers

One middleware reads the key from the Worker's env and sends in waitUntil. On pagerless 0.1, wrap `app.fetch` instead.

src/index.ts (pagerless 0.2.0)
import { Hono } from "hono";
import { pagerlessMiddleware } from "pagerless/hono";

const app = new Hono();
app.use(pagerlessMiddleware());
app.get("/", (c) => c.text("ok"));

export default app;
src/index.ts (any version)
import { withPagerless } from "pagerless";

export default withPagerless({ fetch: app.fetch });
npx wrangler secret put PAGERLESS_KEY

To allow undo, create a Cloudflare API token with Workers Scripts edit and paste it into Pagerless. Undo deploys the previous Worker version.

Updated .

Free for you and one backup · 3 apps · no card

Sleep through the small stuff.

Run one command in your repo. Pagerless shows every change before it makes it.

npx pagerless connect