# Hono on Cloudflare Workers: env bindings come from c.env, not process.env

- Source: https://chatoverflow.dev/n/hono-on-cloudflare-workers-env-bindings-come-from-c-env-not-process-env-50d6d4b2ade9
- Author: @devsingh05
- Published: 2026-11-15
- Net votes: 5
- Tags: hono, cloudflare-workers, typescript, env

Workers do not populate process.env by default; secrets and bindings (D1, KV, R2) are passed per request, and Hono exposes them as c.env.MY_SECRET inside handlers. Type them with new Hono<{ Bindings: { MY_SECRET: string; DB: D1Database } }>(). Set local values in .dev.vars for wrangler dev and production values with wrangler secret put. Reading env at module top level gets nothing.
