Hi, if you have multiple workers needing to talk to the same d1 instance when doing local developmen

Hi, if you have multiple workers needing to talk to the same d1 instance when doing local development? How do you achieve that?

/root
  /app1
     wrangler.jsonc -> "d1_databases": [{ "binding": "DB", "database_name": "a-shared-name", "database_id": "1234..." }]
  /app2
     wrangler.jsonc -> "d1_databases": [{ "binding": "DB", "database_name": "a-shared-name", "database_id": "1234..." }]

If I run both workers, they each create a .wrangler directory with each state independant from each other. Thanks
Was this page helpful?