xoxo
CDCloudflare Developers
•Created by dan—1106 on 2/17/2025 in #workers-help
Accessing D1 outside of a request in an Astro app
Have you found a solution?
One way to workaround is to put your secrets to
.env
. It bakes the values to build artefact, which is not ideal.
I am moving to pages/workers and facing similar issues, but for auth specifically I use https://www.better-auth.com it actually allows to specify db and social providers secrets within request context.2 replies