UNPKG

@nuxthub/core

Version:

Build full-stack Nuxt applications on Cloudflare, with zero configuration.

10 lines (9 loc) 286 B
import { eventHandler } from "h3"; export default eventHandler((event) => { const env = event.context.cloudflare?.env || {}; for (const key in env) { if (typeof process.env[key] === "undefined" && typeof env[key] === "string") { process.env[key] = env[key]; } } });