Skip to content

Commit 1fdba17

Browse files
committed
Fix Blueprint issues found deploying to Render
corepack enable fails with EROFS because Render preinstalls pnpm under the read-only /usr. Render's pnpm already honors the packageManager field and resolved 11.19.0, so the call was unnecessary. The API needs standard, not starter: on 512 MB the process was OOM-killed before binding a port, since the default PGlite store loads an embedded Postgres WASM build.
1 parent b0ef27e commit 1fdba17

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

‎render.yaml‎

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,12 @@ services:
22
- type: web
33
name: openmuse-api
44
runtime: node
5-
plan: starter
6-
buildCommand: corepack enable && pnpm install --frozen-lockfile && pnpm build:server
5+
# starter (512 MB) gets OOM-killed before the server binds a port, because
6+
# the default PGlite store loads an embedded Postgres WASM build.
7+
plan: standard
8+
# No corepack: Render preinstalls pnpm at /usr/bin and /usr is read-only, so
9+
# `corepack enable` dies with EROFS. Render's pnpm honors packageManager.
10+
buildCommand: pnpm install --frozen-lockfile && pnpm build:server
711
startCommand: pnpm start
812
healthCheckPath: /api/health
913
disk:
@@ -49,7 +53,7 @@ services:
4953
# --clear avoids a cached Metro transform keeping a stale EXPO_PUBLIC_API_URL,
5054
# which Expo inlines into the bundle at build time.
5155
buildCommand: >-
52-
corepack enable && pnpm install --frozen-lockfile &&
56+
pnpm install --frozen-lockfile &&
5357
pnpm --dir apps/mobile exec expo export --platform web --output-dir dist/web --clear
5458
staticPublishPath: apps/mobile/dist/web
5559
routes:

0 commit comments

Comments
 (0)