Skip to content
This repository has been archived by the owner on Nov 12, 2024. It is now read-only.

Commit

Permalink
docs: upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
planetscale-actions-bot committed Apr 9, 2024
1 parent 81130a8 commit c7e572f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/tutorials/planetscale-serverless-driver.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,11 @@ npm install @planetscale/database

The first step to using the PlanetScale serverless driver for JavaScript is to connect to your database.

You can get your connection string in the PlanetScale dashboard by clicking on your database, clicking "**Connect**", and selecting `@planetscale/database` from the dropdown.
You can get your connection string in the PlanetScale dashboard by clicking on your database, clicking "**Connect**", and selecting `database-js` from the "Select your language or framework" section.
![Database-js selection {priority}](/assets/docs/tutorials/planetscale-serverless-driver/connect-serverless-credentials-database-js.png)

![Serverless driver connection string {priority}](/assets/docs/tutorials/planetscale-serverless-driver/connect-serverless-credentials-2.png)
Scroll down to the env variables. You'll need this to connect to your database.
![Serverless driver connection string {priority}](/assets/docs/tutorials/planetscale-serverless-driver/connect-serverless-credentials.png)

Use the `connect` function to create the connection and return it to an object.

Expand Down

0 comments on commit c7e572f

Please sign in to comment.