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
In your terminal, you will be asked a series of questions related your project:
40
40
41
41
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.
You should receive the following output on your terminal:
103
101
104
102
```
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
+
}
113
115
```
114
116
115
117
You now have a D1 database in your Cloudflare account with a binding to your Cloudflare Worker.
0 commit comments