Skip to content

Commit d0fcb32

Browse files
committed
chore: add secrets adding output
1 parent e5abe97 commit d0fcb32

File tree

1 file changed

+6
-2
lines changed
  • src/content/docs/workers/tutorials/using-prisma-postgres-with-workers

1 file changed

+6
-2
lines changed

src/content/docs/workers/tutorials/using-prisma-postgres-with-workers/index.mdx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ Note that Cloudflare Workers don't support `.env` files. You will use a file cal
9999

100100
### 2.3. Prepare environment variables
101101

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:
103103

104104
```sh
105105
mv .env .dev.vars
@@ -198,7 +198,11 @@ When the application is deployed to Cloudflare, it needs access to the `DATABASE
198198
npx wrangler secret put DATABASE_URL
199199
```
200200

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+
```
202206
203207
Then execute the following command to deploy your project to Cloudflare Workers:
204208

0 commit comments

Comments
 (0)