So I am attempting to follow the "One D1 database per user" pattern since each user will uploading a
So I am attempting to follow the "One D1 database per user" pattern since each user will uploading a sqlite database.
I have a pipeline where I process the sqlite DB, create a D1 db if one doesn't exist for the user, populate it and then bind it to my app worker.
The problem I'm running into is when I deploy my app worker the dynamic D1 bindings I added get removed since they aren't in the
Any ideas on how to handle that? I was thinking I could write a script to grab the current bindings before deploy but not exactly foolproof.
I have a pipeline where I process the sqlite DB, create a D1 db if one doesn't exist for the user, populate it and then bind it to my app worker.
The problem I'm running into is when I deploy my app worker the dynamic D1 bindings I added get removed since they aren't in the
wrangler.json. Any ideas on how to handle that? I was thinking I could write a script to grab the current bindings before deploy but not exactly foolproof.