Marc-André Bombeck
5cbb080262
fix(db): share one Prisma client across the server bundles
...
A production build loads src/lib/db.ts once per server bundle, and the
client was only parked on globalThis outside production. The running
process held three clients: about 28 MB of query-compiler state each on
a heap capped near 520 MB, and three pg pools each sized to the full
per-process connection budget. Park the client on globalThis in every
environment so each copy of the module resolves the same one.
2026-10-04 15:29:01 +02:00
..
2026-05-10 13:32:19 +02:00
2026-08-07 05:11:02 +02:00
2026-09-24 07:46:12 +02:00
2026-09-10 04:55:19 +02:00
2026-10-03 18:06:28 +02:00
2026-06-19 22:20:31 +02:00
2026-06-03 08:56:19 +02:00
2026-09-03 05:49:13 +02:00
2026-06-19 22:20:31 +02:00
2026-09-10 04:24:34 +02:00
2026-06-19 22:20:31 +02:00
2026-08-02 02:32:24 +02:00
2026-07-07 11:04:51 +02:00
2026-06-19 20:55:46 +02:00
2026-08-14 09:46:35 +02:00
2026-09-05 17:06:34 +02:00
2026-07-18 01:23:37 +02:00
2026-05-17 00:39:58 +02:00
2026-10-04 15:29:01 +02:00
2026-07-21 00:05:03 +02:00
2026-07-08 23:46:54 +02:00
2026-09-26 15:38:20 +02:00
2026-07-26 00:45:08 +02:00
2026-10-01 22:07:07 +02:00
2026-06-14 17:57:21 +02:00
2026-09-26 15:20:42 +02:00
2026-08-08 01:08:27 +02:00
2026-06-19 22:20:31 +02:00
2026-06-19 22:20:31 +02:00
2026-10-03 18:44:06 +02:00
2026-09-05 17:06:34 +02:00
2026-08-08 01:05:44 +02:00
2026-08-29 19:20:33 +02:00
2026-08-08 01:05:44 +02:00
2026-09-26 15:20:42 +02:00
2026-09-26 22:45:51 +02:00
2026-07-19 14:16:02 +02:00
2026-10-01 22:07:07 +02:00
2026-10-01 10:52:48 +02:00
2026-10-04 10:43:00 +02:00
2026-06-07 17:08:25 +02:00
2026-08-06 04:01:00 +02:00
2026-06-26 13:22:21 +02:00
2026-07-26 00:45:08 +02:00
2026-05-08 12:07:46 +02:00
2026-10-03 21:38:03 +02:00
2026-06-12 18:10:21 +02:00
2026-09-26 17:07:02 +02:00
2026-06-20 11:59:13 +02:00
2026-05-21 22:07:32 +02:00
2026-04-18 17:15:43 +02:00
2026-09-10 19:08:04 +02:00
2026-05-08 14:33:39 +02:00
2026-07-22 04:14:15 +02:00
2026-09-05 16:22:39 +02:00
2026-09-26 20:10:12 +02:00
2026-09-10 04:55:47 +02:00
2026-06-19 22:20:31 +02:00
2026-09-24 12:08:39 +02:00
2026-07-23 21:36:01 +02:00
2026-06-27 20:53:48 +02:00
2026-09-02 11:51:09 +02:00
2026-08-23 17:44:13 +02:00
2026-09-26 22:16:44 +02:00
2026-08-31 08:46:16 +00:00
2026-06-11 21:17:27 +02:00
2026-09-10 19:08:04 +02:00
2026-07-29 15:54:01 +02:00
2026-07-29 15:54:01 +02:00
2026-09-26 16:31:03 +02:00
2026-09-26 20:10:57 +02:00
2026-05-09 02:27:17 +02:00
2026-09-26 20:59:10 +02:00
2026-06-07 14:41:15 +02:00
2026-09-05 17:06:34 +02:00
2026-07-17 17:30:04 +02:00