diff --git a/content/300-guides/200-deployment/301-edge/450-deploy-to-cloudflare-workers.mdx b/content/300-guides/200-deployment/301-edge/450-deploy-to-cloudflare-workers.mdx
index b8fe083766..b273d725ec 100644
--- a/content/300-guides/200-deployment/301-edge/450-deploy-to-cloudflare-workers.mdx
+++ b/content/300-guides/200-deployment/301-edge/450-deploy-to-cloudflare-workers.mdx
@@ -138,7 +138,7 @@ git commit -m "initial commit"
git push -u origin main
```
-You're ready to import your project into the Prisma Data Platform.
+You're ready to create a project in [Prisma Data Platform](https://console.prisma.io).
## 4. Enable Accelerate in Prisma Data Platform
@@ -151,9 +151,9 @@ To get started, sign up for a free [Prisma Data Platform account](https://consol
1. Add the Prisma Accelerate connection string to your local environment `.env` file and the `DIRECT_URL` environment variable to perform migrations and intropspections.
```diff file=.env
+ -DATABASE_URL="postgres://..."
+DATABASE_URL="prisma://accelerate.prisma-data.net/?api_key=__API_KEY__"
+DIRECT_URL="postgres://..."
- -DATABASE_URL="postgres://..."
```
Add [`directUrl`](/reference/api-reference/prisma-schema-reference#fields) property in `datasource` block in the `schema.prisma` file.
@@ -162,7 +162,7 @@ To get started, sign up for a free [Prisma Data Platform account](https://consol
datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
- directUrl = env("DIRECT_URL")
+ +directUrl = env("DIRECT_URL")
}
```
diff --git a/content/300-guides/200-deployment/301-edge/550-deploy-to-deno-deploy.mdx b/content/300-guides/200-deployment/301-edge/550-deploy-to-deno-deploy.mdx
index 9566c7a60d..2ebcbd39ed 100644
--- a/content/300-guides/200-deployment/301-edge/550-deploy-to-deno-deploy.mdx
+++ b/content/300-guides/200-deployment/301-edge/550-deploy-to-deno-deploy.mdx
@@ -172,15 +172,23 @@ Setup an Accelerate connection string and proceed to the next step.
With the Accelerate connection string copied, you can replace the direct PostgreSQL connection string that you used to create the database schema in your `.env` file.
+Prisma Client for Prisma Accelerate does not read .env files by default, so you must also install dotenv-cli locally.
+
### Steps
-1. Install the Prisma Accelerate client extension
+1. Install the `dotenv-cli`.
+
+ ```
+ npm install dotenv-cli
+ ```
+
+2. Install the Prisma Accelerate client extension
```bash
npm install @prisma/extension-accelerate
```
-2. Add the Accelerate connection string to the `.env` file. Also, comment out the direct connection string.
+3. Add the Accelerate connection string to the `.env` file. Also, comment out the direct connection string.
```bash file=.env
DATABASE_URL="DATABASE_URL="prisma://accelerate.prisma-data.net/?api_key=__API_KEY__""
@@ -188,7 +196,7 @@ With the Accelerate connection string copied, you can replace the direct Postgre
# DATABASE_URL="postgres://..."
```
-3. Add the Prisma Accelerate extension to your Prisma Client
+4. Add the Prisma Accelerate extension to your Prisma Client
```typescript
import { PrismaClient } from './generated/client/deno/edge.ts'
@@ -234,14 +242,14 @@ You can now start your application locally and test the creation of log entries.
3. Reload the page a few times.
Every time you reload, the script generates a new log entry and the id of the current log entry increments.
- To check whether Accelerate is working, add the `withAccelerateInfo` at the end of your query. This returns an [`info`](/data-platform/accelerate/api-reference#return-type) object which provides additional information on the result of your query.
+ To get more useful information on queries, add the `withAccelerateInfo` at the end of your query. This returns an [`info`](/data-platform/accelerate/api-reference#return-type) object which provides additional information on the result of your query.
```ts
import { serve } from 'https://deno.land/std@0.140.0/http/server.ts'
import { PrismaClient } from './generated/client/deno/edge.ts'
- +import { withAccelerate } from '@prisma/extension-accelerate'
+ import { withAccelerate } from '@prisma/extension-accelerate'
- +const prisma = new PrismaClient().$extends(withAccelerate())
+ const prisma = new PrismaClient().$extends(withAccelerate())
async function handler(request: Request) {
const { data, info} = await prisma.log.create({