Skip to content

Commit 50cd3b1

Browse files
committed
Minor fix to Prisma binding output
1 parent 5ac1749 commit 50cd3b1

File tree

1 file changed

+13
-11
lines changed
  • src/content/docs/d1/tutorials/d1-and-prisma-orm

1 file changed

+13
-11
lines changed

src/content/docs/d1/tutorials/d1-and-prisma-orm/index.mdx

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,7 @@ npm create cloudflare@latest prisma-d1-example -- --type hello-world
3939
In your terminal, you will be asked a series of questions related your project:
4040

4141
1. Answer `yes` to using TypeScript.
42-
2. Answer `yes` to deploying your Worker.
43-
44-
Once you deploy your Worker, you should be able to preview your Worker at `https://prisma-d1-example.USERNAME.workers.dev`, which displays "Hello World" in the browser.
42+
2. Answer `no` to deploying your Worker.
4543

4644
### 2. Initialize Prisma ORM
4745

@@ -102,14 +100,18 @@ npx wrangler d1 create prisma-demo-db
102100
You should receive the following output on your terminal:
103101

104102
```
105-
✅ Successfully created DB 'prisma-demo-db' in region EEUR
106-
Created your database using D1's new storage backend. The new storage backend is not yet recommended for production workloads, but backs up your data via
107-
point-in-time restore.
108-
109-
[[d1_databases]]
110-
binding = "DB" # i.e. available in your Worker on env.DB
111-
database_name = "prisma-demo-db"
112-
database_id = "__YOUR_D1_DATABASE_ID__"
103+
✅ Successfully created DB 'prisma-demo-db' in region WEUR
104+
Created your new D1 database.
105+
106+
{
107+
"d1_databases": [
108+
{
109+
"binding": "DB",
110+
"database_name": "prisma-demo-db",
111+
"database_id": "<DATABASE_ID>"
112+
}
113+
]
114+
}
113115
```
114116

115117
You now have a D1 database in your Cloudflare account with a binding to your Cloudflare Worker.

0 commit comments

Comments
 (0)