Better-Auth CLI in Monorepo
Hello!
I am having trouble using the
generate
command in a monorepo. I keep trying to generate a schema for drizzle but keep getting Couldn't read your auth config
. I'm in a monorepo and have tried:
- running the command from root
- pointing to the config with --config
flag
- redirecting output with --output
flag
Does anyone have any tips to generate a schema in a monorepo?
Thanks1 Reply
Here's a link to an issue I believe is closely related https://github.com/better-auth/better-auth/issues/1215
GitHub
Couldn't read your auth config. using npx @better-auth/cli generate...
Is this suited for github? Yes, this is suited for github To Reproduce Install better-auth "better-auth": "1.1.13", setup .env file, BETTER_AUTH_SECRET and BETTER_AUTH_URL npx p...