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:
smueller
2026-07-22 13:56:33 +02:00
parent 7bc1684566
commit 04e04eb11d
39 changed files with 2394 additions and 14 deletions

View 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;
}