sst / ion

❍ — a new engine for SST
https://ion.sst.dev
MIT License
1.09k stars 126 forks source link

Cloudflare D1 and DrizzleKit Support #545

Open claughinghouse opened 2 weeks ago

claughinghouse commented 2 weeks ago

Currently the D1 component only provides the databaseId but in order to run migrations in DrizzleKit the config is missing the token and accountId. The accountId could be hardcoded but ideally this could be dynamically injected via Resource.

https://discord.com/channels/983865673656705025/983865673656705028/1245550554382467082

thdxr commented 5 days ago

i'm not sure that we have token anywhere - is this referring to the cloudflare token? you will have to pass that yourself

claughinghouse commented 5 days ago

Is the env used to pick up the accountId and token as a fallback?