thanks, makes sense. just fyi, then:

thanks, makes sense. just fyi, then: 1) that is not mentioned in the docs 2) just want to point out that the vite plugin doesn’t support -–remote, so that’s a particular bummer
2 Replies
thomasgauvin
thomasgauvin18h ago
Understand that it's hard to catch in the docs, we try to make it apparent as much as possible as you can see from the note at the top of this page https://developers.cloudflare.com/hyperdrive/configuration/local-development/ Where would you expect it to be?
Cloudflare Docs
Local development
Hyperdrive can be used when developing and testing your Workers locally by connecting to a local database instance running on your machine directly, or a remote database instance. Local development uses Wrangler, the command-line interface for Workers, to manage local development sessions and state.
Avi
AviOP16h ago
@thomasgauvin thanks for pointing me to that! i think my confusion is that I read "local" as in "not-remote", rather than "literally a database running on your own machine"
You can connect to a local database for local development using the local connection string configurations for Wrangler, as detailed below. This allows you to connect to a local database instance running on your machine directly.
this does clarify it my hope was that I could supply a connection string to my external database to "bypass" hyperdrive we do not run our developer databases locally, so the current functionality isn't very useful for us we ended up having to do like connectionString: env.HYPERDRIVE ?? DATABASE_URL

Did you find this page helpful?