0.5.3 • Published 19 days ago
@wundergraph/cosmo-cdn v0.5.3
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;