@wundergraph/cosmo-cdn
v0.6.1
Published
## Example for Cloudflare Workers
Downloads
44
Readme
Cosmo CDN Hono Module
Example for Cloudflare Workers
import { cors } from "hono/cors";
import { Context, Hono } from "hono";
// Your bindings
import { Bindings } from "./bindings";
import { cdn } from "@wundergraph/cosmo-cdn";
const app = new Hono<{ Bindings: Bindings }>();
app.use("*", cors());
cdn(app, {
authJwtSecret,
blobStorage, // Your BlobStorage implementation
});
export default app;