how i connect my hono application with supabase project
how i connect my hono application with supabase project
4 Replies
This would be specific to Cloudflare Workers since you can only access environment vars inside the content.
Here is for reference how to use get/set
https://hono.dev/api/context#set-get
Context - Hono
Ultrafast web framework for Cloudflare Workers, Fastly Compute, Deno, Bun, Vercel, Node.js, and others. Fast, but not only fast.
And how to add it to the types globally
https://hono.dev/api/context#contextvariablemap
Context - Hono
Ultrafast web framework for Cloudflare Workers, Fastly Compute, Deno, Bun, Vercel, Node.js, and others. Fast, but not only fast.
Inside your route you can call
c.get('DB')
to call your database