Dhravya / cloudflare-saas-stack

Quickly make and deploy full-stack apps with database, auth, styling, storage etc. figured out for you. Add all primitives you want.
3.09k stars 231 forks source link

drizzle studio for d1 #4

Closed CodeTorso closed 2 months ago

CodeTorso commented 3 months ago

I have tested out it works for the local d1 database.

For production d1 database it also requires users's following details

CLOUDFLARE_D1_ACCOUNT_ID CLOUDFLARE_D1_API_TOKEN

I believe we should not ask these details at the start since it will be overload, So I have just put these values .dev.vars with a message.

I also got a question, How do you comment in .vars ending file ??

Dhravya commented 3 months ago

this is cool, i just think that the developer experience and setup takes a huge hit. we should probably extract the account ID and create an api token so the user doesn't have to.

most people don't currently know where the account id livew