/Wiki/sources/honojs__hono/2026/https-hono-dev-llms-full-txt-specify-the-runtime-115db9276074-specify-the-runtime-s0687-c0000.md
Specify the runtime - hono-docs
Specify the runtime Source evidence: /Sources/raw/honojs hono/honojs hono.md Canonical citation: https://hono.dev/llms full.txt specify the runtime Summary Y...
Specify the runtime
Source evidence: /Sources/raw/honojshono/honojshono.md Canonical citation: https://hono.dev/llms-full.txt#specify-the-runtime
Summary
You can specify the runtime to get environment variables by passing the runtime key as the second argument. ts app.get('/env', (c) => { const { NAME } = env (c, 'workerd') return c.text(NAME) })
Content
You can specify the runtime to get environment variables by passing the runtime key as the second argument.
app.get('/env', (c) => {
const { NAME } = env<{ NAME: string }>(c, 'workerd')
return c.text(NAME)
})