Skip to content

How can i use honohub with cloudflare d1? #10

@Stead08

Description

@Stead08

I want to use Cloudflare D1 with HonoHub, but I need to access the database from the Hono context.
With the initialization:

const app = new Hono();
app.route("/", createHub(hubConfig));

I cannot use the context, so I cannot access the database.
Is there any good solution?
Thanks

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions