diff --git a/.github/workflows/test-build.yml b/.github/workflows/test-build.yml index 1dea765308..8bcd240011 100644 --- a/.github/workflows/test-build.yml +++ b/.github/workflows/test-build.yml @@ -109,6 +109,9 @@ jobs: - name: Verify realtime prune graph run: bun run check:realtime-prune + - name: Type-check realtime server + run: bunx turbo run type-check --filter=@sim/realtime + - name: Run tests with coverage env: NODE_OPTIONS: '--no-warnings --max-old-space-size=8192' diff --git a/apps/realtime/src/index.ts b/apps/realtime/src/index.ts index aae6dfed3f..6ea031163b 100644 --- a/apps/realtime/src/index.ts +++ b/apps/realtime/src/index.ts @@ -29,7 +29,7 @@ async function createRoomManager(io: SocketIOServer): Promise { async function main() { const httpServer = createServer() - const PORT = Number(env.PORT || env.SOCKET_PORT || 3002) + const PORT = Number(env.SOCKET_PORT ?? env.PORT ?? 3002) logger.info('Starting Socket.IO server...', { port: PORT, diff --git a/docker/realtime.Dockerfile b/docker/realtime.Dockerfile index 36891f49b6..8092709267 100644 --- a/docker/realtime.Dockerfile +++ b/docker/realtime.Dockerfile @@ -37,7 +37,6 @@ WORKDIR /app ENV NODE_ENV=production \ PORT=3002 \ - SOCKET_PORT=3002 \ HOSTNAME="0.0.0.0" RUN addgroup -g 1001 -S nodejs && \