Any way to query D1 during build process?

I have a sveltekit app that I want pre-rendered, some data of which relies on D1. Is there some way to query it directly or am I stuck with the HTTP API?
2 Replies
DaniFoldi
DaniFoldi5mo ago
I believe your only native option today is to use the HTTP API, or you could build yourself an auxiliary worker that has a binding to the D1 database and performs the queries you need, avoiding the rate limit of API
BlueFrog
BlueFrogOP5mo ago
Thanks, that is what I figured. Turso may fit my use case a bit better anyways.
Want results from more Discord servers?
Add your server