mirror of
https://github.com/umami-software/umami.git
synced 2026-02-12 00:27:11 +01:00
Always cache prisma. Renamed WebsiteMonthSelect to MonthFilter.
This commit is contained in:
parent
92ee44756c
commit
904c313a64
7 changed files with 11 additions and 11 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue