Closed magne4000 closed 2 months ago
Closes #30
import { env, type Get, type UniversalMiddleware } from "@universal-middleware/core"; const handler = (() => (request, context, runtime) => { // process.env.DATABASE_URL on supported environment // Done.env.get("DATABASE_URL") for Deno // runtime.env.DATABASE_URL for Cloudflare const { DATABASE_URL } = env<{ DATABASE_URL: string }>(runtime); // ... }) satisfies Get<[], UniversalMiddleware>;
Closes #30
Usage