How do I access cf object on the context? #961
vinaymhetre
started this conversation in
General
Replies: 1 comment 1 reply
-
You can access it from |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have just started a new project with hono 3.0.2 using create-hono CLI.
I could previously access the cloudflare object and its properties in workers project with Hono but they seem to be not available anymore. Any idea where to look for these for the incoming request?
app.get('/', async (c) => { const country = c.req.cf?.country; return c.text(
Hello from ${country}); });
Beta Was this translation helpful? Give feedback.
All reactions