Open History to see the last commit
1// CLI-only entry for `bunx @better-auth/cli generate --config` — gives the
2// CLI an auth instance to introspect for schema generation without importing
3// `cloudflare:workers` (which only exists inside workerd). The db is never
4// queried during generation, so a stub is fine.
5import type { Db } from '../src/db/index.ts'
6import { createAuth } from '../src/lib/auth.ts'
7
8export const auth = createAuth({} as unknown as Db, {
9 secret: 'better-auth-cli-schema-generation-only',
10})