Skip to content

Commit 8f3b12d

Browse files
committed
fix: resolve ws version mismatch in Docker (ws@7 → ws@8)
pnpm deploy hoisted ws@7.5.10 (from React Native) instead of ws@8.19.0. ws@7 delivers text frames as strings; tRPC v11 adapter requires Buffers. - Add ws to pnpm catalog (8.19.0) - Add ws as direct dep of apps/web for correct pnpm deploy resolution - Update packages/api and packages/trpc to use catalog reference - Bump version to 0.17.1-beta - Add TRUSTED_ORIGINS and LOG_LEVEL to docker-compose.test.yml - Add --disable-features=dbus to Chrome headless configs
1 parent bb003e9 commit 8f3b12d

File tree

9 files changed

+43
-28
lines changed

9 files changed

+43
-28
lines changed

apps/web/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@norish/web",
3-
"version": "0.17.0-beta",
3+
"version": "0.17.1-beta",
44
"private": true,
55
"type": "module",
66
"scripts": {
@@ -60,6 +60,7 @@
6060
"server-only": "catalog:",
6161
"use-sound": "^5.0.0",
6262
"usehooks-ts": "^3.1.1",
63+
"ws": "catalog:",
6364
"zustand": "5.0.11"
6465
},
6566
"devDependencies": {

docker/docker-compose.example.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ services:
8989
- "--no-sandbox"
9090
- "--disable-gpu"
9191
- "--disable-dev-shm-usage"
92+
- "--disable-features=dbus"
9293
- "--remote-debugging-address=0.0.0.0"
9394
- "--remote-debugging-port=3000"
9495
- "--headless"

docker/docker-compose.local.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ services:
2222
- "--no-sandbox"
2323
- "--disable-gpu"
2424
- "--disable-dev-shm-usage"
25+
- "--disable-features=dbus"
2526
- "--remote-debugging-address=0.0.0.0"
2627
- "--remote-debugging-port=3000"
2728
- "--headless"

docker/docker-compose.test.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,12 @@ services:
1818
DATABASE_URL: postgres://postgres:norish@db:5432/norish
1919
REDIS_URL: redis://redis:6379
2020
AUTH_URL: http://localhost:3000
21+
# Include host LAN IP for mobile app access
22+
TRUSTED_ORIGINS: http://localhost:3000,http://192.168.*.*:3000,exp://,exp://**,exp://192.168.*.*:*/**
2123
MASTER_KEY: X4fjLgB8egCPwlOQW8iC3JGXAtUIMUOGmk/y29n+YSw=
2224
CHROME_WS_ENDPOINT: ws://chrome-headless:3000
2325
PASSWORD_AUTH_ENABLED: "true"
26+
LOG_LEVEL: debug
2427
depends_on:
2528
db:
2629
condition: service_healthy
@@ -57,6 +60,7 @@ services:
5760
- "--no-sandbox"
5861
- "--disable-gpu"
5962
- "--disable-dev-shm-usage"
63+
- "--disable-features=dbus"
6064
- "--remote-debugging-address=0.0.0.0"
6165
- "--remote-debugging-port=3000"
6266
- "--headless"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "norish",
3-
"version": "0.17.0-beta",
3+
"version": "0.17.1-beta",
44
"private": true,
55
"type": "module",
66
"packageManager": "pnpm@10.30.1",

packages/api/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
"superjson": "catalog:",
5959
"tsdav": "^2.1.8",
6060
"uuid": "13.0.0",
61-
"ws": "8.19.0",
61+
"ws": "catalog:",
6262
"yt-dlp-wrap": "^2.3.12",
6363
"zod": "catalog:"
6464
},

packages/trpc/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@norish/trpc",
3-
"version": "0.17.0-beta",
3+
"version": "0.17.1-beta",
44
"private": true,
55
"type": "module",
66
"types": "./dist/public.d.ts",
@@ -57,7 +57,7 @@
5757
"ioredis": "catalog:",
5858
"jszip": "catalog:",
5959
"superjson": "catalog:",
60-
"ws": "8.19.0",
60+
"ws": "catalog:",
6161
"zod": "catalog:"
6262
},
6363
"devDependencies": {
@@ -69,4 +69,4 @@
6969
"prettier": "catalog:"
7070
},
7171
"prettier": "@norish/prettier-config"
72-
}
72+
}

pnpm-lock.yaml

Lines changed: 29 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pnpm-workspace.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ catalog:
4242
typescript: 5.9.3
4343
vite: ^7.1.12
4444
vitest: ^4.0.18
45+
ws: 8.19.0
4546
zod: 4.3.6
4647

4748
nodeLinker: hoisted

0 commit comments

Comments
 (0)