@wundergraph/cosmo-cdn
TypeScript icon, indicating that this package has built-in type declarations

0.5.3 • Public • Published

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;

/@wundergraph/cosmo-cdn/

    Package Sidebar

    Install

    npm i @wundergraph/cosmo-cdn

    Weekly Downloads

    0

    Version

    0.5.3

    License

    Apache-2.0

    Unpacked Size

    70.9 kB

    Total Files

    7

    Last publish

    Collaborators

    • starptech
    • jens-wundergraph