Can't use @better-auth/cli when exporting a auth function
I am using Better Auth across my api (hono + cloudflare workers) and fronted (nextjs + vercel), so far so good however when i want to run the
my auth config is setup like so:
Since we need to pass in env's from the cloudflare context, we need to create the auth client rather than just existing.
my repo: https://github.com/jacobsamo/BuzzTrip
branch: https://github.com/jacobsamo/BuzzTrip/tree/feat/migrate-to-better-auth
code causing the problem: https://github.com/jacobsamo/BuzzTrip/blob/feat/migrate-to-better-auth/apps/api/src/common/auth.ts
run from: https://github.com/jacobsamo/BuzzTrip/blob/feat/migrate-to-better-auth/packages/db/package.json
bunx @better-auth/cli generate i get the following error: my auth config is setup like so:
Since we need to pass in env's from the cloudflare context, we need to create the auth client rather than just existing.
my repo: https://github.com/jacobsamo/BuzzTrip
branch: https://github.com/jacobsamo/BuzzTrip/tree/feat/migrate-to-better-auth
code causing the problem: https://github.com/jacobsamo/BuzzTrip/blob/feat/migrate-to-better-auth/apps/api/src/common/auth.ts
run from: https://github.com/jacobsamo/BuzzTrip/blob/feat/migrate-to-better-auth/packages/db/package.json
GitHub
Plan the trip you've always dreamed of. Contribute to jacobsamo/BuzzTrip development by creating an account on GitHub.
GitHub
Plan the trip you've always dreamed of. Contribute to jacobsamo/BuzzTrip development by creating an account on GitHub.
GitHub
Plan the trip you've always dreamed of. Contribute to jacobsamo/BuzzTrip development by creating an account on GitHub.
GitHub
Plan the trip you've always dreamed of. Contribute to jacobsamo/BuzzTrip development by creating an account on GitHub.