/Knowledge/sources/honojs__hono/llms-full/netlify-context--b3dff3c4d5b7.md
Netlify: Context - hono-docs
Netlify: Context Source evidence: /Sources/honojs hono/provenance.md Canonical citation: https://hono.dev/llms full.txt context Summary You can access the Ne...
Netlify: Context
Source evidence: /Sources/honojs__hono/provenance.md Canonical citation: https://hono.dev/llms-full.txt#context
Summary
You can access the Netlify's Context through c.env: ```ts import { Hono } from 'jsr:@hono/hono' import { handle } from 'jsr:@hono/hono/netlify' // Import the type definition import type { Context } from 'https://edge.netlify.com/' ex...
Content
You can access the Netlify's Context through c.env:
import { Hono } from 'jsr:@hono/hono'
import { handle } from 'jsr:@hono/hono/netlify'
// Import the type definition
import type { Context } from 'https://edge.netlify.com/'
export type Env = {
Bindings: {
context: Context
}
}
const app = new Hono<Env>()
app.get('/country', (c) =>
c.json({
'You are in': c.env.context.geo.country?.name,
})
)
export default handle(app)
Metadata
{
"chunk_index": 0,
"citation": "https://hono.dev/llms-full.txt#context",
"coverage_role": "overview",
"qualified_title": "Hono / llms-full / Netlify > `Context`",
"retrieved_at": "2026-07-02T05:51:01Z",
"section_index": 398,
"source_id": "/honojs/hono",
"source_type": "llms_full",
"target_label": "llms-full",
"title": "Netlify: Context",
"upstream_url": "https://hono.dev/llms-full.txt",
"version": "2026"
}