@hintergrund/worker
v0.1.6
Published
Backend worker package for the Hintergrund CMS Cloudflare Worker.
Readme
@hintergrund/worker
Backend worker package for the Hintergrund CMS Cloudflare Worker.
Installation
pnpm add @hintergrund/workerUsage
import { createApp } from '@hintergrund/worker';
const app = createApp();
export default app;Exports
createApp()
Creates and configures a new Hono app instance with:
- CORS middleware
- CMS routes under
/api/cms - Static asset serving with SPA fallback
Types
Bindings- Cloudflare Worker bindings type
Utilities
- JWT utilities from
./jwt - Utility functions from
./utils - Template utilities from
./template
Development
# Build the package
pnpm run build
# Watch mode
pnpm run dev