Always cache prisma. Renamed WebsiteMonthSelect to MonthFilter.

This commit is contained in:
Mike Cao 2025-10-03 18:06:18 -07:00
parent 92ee44756c
commit 904c313a64
7 changed files with 11 additions and 11 deletions

View file

@ -284,7 +284,7 @@ function getClient() {
replicaUrl: process.env.DATABASE_REPLICA_URL,
});
if (process.env.NODE_ENV !== 'production') {
if (!globalThis[PRISMA]) {
globalThis[PRISMA] = prisma.client;
}