fix(presence-service): use linux-musl-openssl-3.0.x Prisma binary target for Alpine

Alpine Linux (node:18-alpine) ships OpenSSL 3 only; the default linux-musl engine
binary requires libssl.so.1.1 which is absent on Alpine 3.17+. Specifying
binaryTargets = ["native", "linux-musl-openssl-3.0.x"] forces Prisma to generate
the OpenSSL-3-compatible query engine, resolving the startup crash.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
hailin 2026-03-07 18:19:13 -08:00
parent 75eff6e8e7
commit aa2b8e3138
1 changed files with 3 additions and 1 deletions

View File

@ -5,7 +5,9 @@
// =============================================================================
generator client {
provider = "prisma-client-js"
provider = "prisma-client-js"
// Alpine Linux (musl libc) + OpenSSL 3 — must match the Docker base image (node:18-alpine)
binaryTargets = ["native", "linux-musl-openssl-3.0.x"]
}
datasource db {