Skip to content

Commit

Permalink
Update src/content/docs/pages/functions/bindings.mdx
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasgauvin authored Oct 11, 2024
1 parent 16de7ad commit 8ad0f4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/content/docs/pages/functions/bindings.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -687,7 +687,7 @@ export const onRequest: PagesFunction<Env> = async (context) => {

### Interact with your Hyperdrive binding locally

To interact with your Hyperdrive binding locally, use the `wrangler.toml` file to configure your Hyperdrive binding. Then, run [`npx wrangler pages dev <OUTPUT_DIR>`](/workers/wrangler/commands/#dev-1).
To interact with your Hyperdrive binding locally, you must provide a local connection string to your database that your Pages project will connect to directly. You can set an environment variable `WRANGLER_HYPERDRIVE_LOCAL_CONNECTION_STRING_<BINDING_NAME>` with the connection string of the database, or use the `wrangler.toml` file to configure your Hyperdrive binding with a `localConnectionString` as specified in [Hyperdrive documentation for local development](/hyperdrive/configuration/local-development/). Then, run [`npx wrangler pages dev <OUTPUT_DIR>`](/workers/wrangler/commands/#dev-1).

## Analytics Engine

Expand Down

0 comments on commit 8ad0f4e

Please sign in to comment.