-
Notifications
You must be signed in to change notification settings - Fork 0
fix: prisma client not found error #22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,56 @@ | ||
| import type { Adapter } from '@auth/core/adapters'; | ||
| import type { PrismaClient } from '@prisma/client' | ||
|
||
|
|
||
| // Comprehensive database provider types | ||
| export type DatabaseProviderType = | ||
| | 'prisma' | ||
| | 'drizzle' | ||
| | 'mongodb' | ||
| | 'postgres' | ||
| | 'mysql' | ||
| | 'sqlite' | ||
| | 'supabase' | ||
| | 'custom'; | ||
|
|
||
| // Abstract database configuration interface | ||
| export interface BaseDatabaseConfig { | ||
| type: DatabaseProviderType; | ||
| connectionString?: string; | ||
| ssl?: boolean; | ||
| } | ||
|
|
||
| // Specific database provider configurations | ||
| export interface CustomAdapterConfig extends BaseDatabaseConfig { | ||
| type: 'custom'; | ||
| adapter: Adapter; | ||
|
||
| } | ||
| export interface PrismaConfig extends BaseDatabaseConfig { | ||
| type: 'prisma'; | ||
| client: PrismaClient; | ||
| } | ||
|
|
||
| export interface DrizzleConfig extends BaseDatabaseConfig { | ||
| type: 'drizzle'; | ||
| client: any; | ||
| schema?: any; | ||
| } | ||
|
|
||
| export interface MongoDBConfig extends BaseDatabaseConfig { | ||
| type: 'mongodb'; | ||
| client: any; | ||
| databaseName?: string; | ||
| } | ||
|
|
||
| export interface SupabaseConfig extends BaseDatabaseConfig { | ||
| type: 'supabase'; | ||
| url: string; | ||
| secret: string; | ||
| } | ||
|
|
||
| // Union type for all database configurations | ||
| export type DatabaseConfig = | ||
| | PrismaConfig | ||
| | DrizzleConfig | ||
| | MongoDBConfig | ||
| | SupabaseConfig | ||
| | CustomAdapterConfig; | ||
Uh oh!
There was an error while loading. Please reload this page.