Defining you d1_databases array under a `[vars]` table will make it where your D1 bindings are not d

Defining you d1_databases array under a
[vars]
table will make it where your D1 bindings are not defined unless you changed your format to use a table for
d1_databases
also which is why you started to get an error when you moved it.

These 2 toml files are not equal:
d1_databases = [
  { binding = "name", ... }
]

[vars]
hello = "world"


[vars]
hello = "world"

d1_databases = [
  { binding = "name", ... }
]
Was this page helpful?