hffmnn_
hffmnn_
BABetter Auth
Created by mezo on 4/15/2025 in #help
cli not generating migration files due to cf bindings usage
I guess what @Ping meant with database shouldn't be an env variable: you can't put an env variable into the database property of better-auth. You have to e.g. use drizzle (especially since drizzle supports D1): https://www.better-auth.com/docs/adapters/drizzle https://orm.drizzle.team/docs/connect-cloudflare-d1
19 replies
BABetter Auth
Created by mezo on 4/15/2025 in #help
cli not generating migration files due to cf bindings usage
Looking at the docs, env can also be imported like this: import { env } from "cloudflare:workers"; so eventually you don't need to make this dynamic.
19 replies