diff --git a/docs/tutorials/planetscale-serverless-driver.md b/docs/tutorials/planetscale-serverless-driver.md index 95c1fc70..d9ec5012 100644 --- a/docs/tutorials/planetscale-serverless-driver.md +++ b/docs/tutorials/planetscale-serverless-driver.md @@ -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.