Update fun module configuration and enhance CSS styles
- 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.
This commit is contained in:
10
apps/webui/src/lib/prisma.ts
Normal file
10
apps/webui/src/lib/prisma.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user