Skip to content

Commit 9c3edac

Browse files
authored
Add development mode instructions to get-started.mdx
Added instructions for running in development mode.
1 parent a2bb9af commit 9c3edac

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/content/docs/hyperdrive/get-started.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,10 @@ Upon receiving a request, the code above does the following:
341341
</TabItem>
342342
</Tabs>
343343

344+
## 5. Run in development mode (optional)
345+
346+
You can start your project in development mode. If you want to connect to a local database on your local development computer (ie: `localhost:5432`), you can now run `wrangler dev`. This will connect directly to your database from your local Worker project emulation (Hyperdrive caching will not take effect and the local database must not require SSL). To develop using a remote database, you can connect to your Hyperdrive configuration by running `wrangler dev --remote`.
347+
344348
## 6. Deploy your Worker
345349

346350
You can now deploy your Worker to make your project accessible on the Internet. To deploy your Worker, run:

0 commit comments

Comments
 (0)