I want to use my D1 database bindings at build time to generate static pages for my Astro site. However, in my npm run build step, it seems the D1 DB binding is undefined.
It looks like you are unable to access production bindings during build unless you were to use the http APIs to connect directly to them, which isn’t really an option for most (all?) ORMs