You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/docs/workers/tutorials/using-prisma-postgres-with-workers/index.mdx
+6-2Lines changed: 6 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -99,7 +99,7 @@ Note that Cloudflare Workers don't support `.env` files. You will use a file cal
99
99
100
100
### 2.3. Prepare environment variables
101
101
102
-
Rename the `.env` file in the root of your application to `.dev.vars` file:
102
+
Rename the `.env` file in the root of your application to `.dev.vars` file:
103
103
104
104
```sh
105
105
mv .env .dev.vars
@@ -198,7 +198,11 @@ When the application is deployed to Cloudflare, it needs access to the `DATABASE
198
198
npx wrangler secret put DATABASE_URL
199
199
```
200
200
201
-
When prompted, paste the `DATABASE_URL` value (from `.dev.vars`).
201
+
When prompted, paste the `DATABASE_URL` value (from `.dev.vars`). If you're logged in via the Wrangler CLI, you'll see a prompt asking if you'd like to create a new Worker. Confirm by choosing "yes":
202
+
203
+
```sh
204
+
✔ There doesn't seem to be a Worker called "prisma-postgres-worker". Do you want to create a new Worker with that name and add secrets to it? … yes
205
+
```
202
206
203
207
Then execute the following command to deploy your project to Cloudflare Workers:
0 commit comments