- Added 'enabled' property to FunConfigSchema with a default value of true for better configuration management. - Refactored getFunConfig to return a complete default configuration when no data is found. - Improved globals.css by expanding CSS variables for light and dark themes, enhancing styling consistency across the application.
11 lines
335 B
TypeScript
11 lines
335 B
TypeScript
import { PrismaClient } from '@prisma/client';
|
|
import { env } from './env';
|
|
|
|
const globalForPrisma = globalThis as unknown as { __nexumiPrisma?: PrismaClient };
|
|
|
|
export const prisma: PrismaClient = globalForPrisma.__nexumiPrisma ?? new PrismaClient();
|
|
|
|
if (env.NODE_ENV !== 'production') {
|
|
globalForPrisma.__nexumiPrisma = prisma;
|
|
}
|