Skip to content

Commit 6a3b01d

Browse files
committed
Changing names to be more specific/relevant.
1 parent 6640757 commit 6a3b01d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/content/docs/d1/configuration/environments.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,23 +31,23 @@ In the code above, the `staging` environment is using a different database (`DAT
3131
If you have multiple environments in your D1 binding, your `wrangler.toml` may look like the following:
3232

3333
```toml
34-
[[env.abc]]
34+
[[production.d1_databases]]
3535
binding = "DB"
3636
database_name = "DATABASE_NAME"
3737
database_id = "DATABASE_ID"
3838
```
3939

4040
In the above configuration:
4141

42-
- `[[something.abc]]` creates an object `something` with a property `abc` (which is an object itself).
43-
- Any property below the line in the form `<key> = <value>` is a property of the `abc` object.
42+
- `[[production.d1_databases]]` creates an object `production` with a property `d1_databases` (which is an object itself).
43+
- Any property below the line in the form `<key> = <value>` is a property of the `d1_databases` object.
4444

4545
Therefore, the above binding is equivalent to:
4646

4747
```json
4848
{
49-
"something": {
50-
"abc": [
49+
"production": {
50+
"d1_databases": [
5151
{
5252
"binding": "DB",
5353
"database_name": "DATABASE_NAME",

0 commit comments

Comments
 (0)