···15# APPVIEW_DID=did:web:api.bsky.app
1617# Optional: Relay for firehose
18-# RELAY_HOST=https://bsky.network
1920# Cloudflare-specific (not needed for Node.js)
21# CLOUDFLARE_API_TOKEN=your_api_token_here
···15# APPVIEW_DID=did:web:api.bsky.app
1617# Optional: Relay for firehose
18+# RELAY_URL=https://bsky.network
1920# Cloudflare-specific (not needed for Node.js)
21# CLOUDFLARE_API_TOKEN=your_api_token_here
+1-1
README.md
···51| HOSTNAME | No | Public hostname for the PDS |
52| APPVIEW_URL | No | AppView URL for proxying |
53| APPVIEW_DID | No | AppView DID for service auth |
54-| RELAY_HOST | No | Relay URL for firehose notifications |
5556## Deploy: Node.js
57
···51| HOSTNAME | No | Public hostname for the PDS |
52| APPVIEW_URL | No | AppView URL for proxying |
53| APPVIEW_DID | No | AppView DID for service auth |
54+| RELAY_URL | No | Relay URL for firehose notifications |
5556## Deploy: Node.js
57
···45**Goal:** Integrate local PLC and relay from docker-compose into e2e tests for debugging sync issues and comprehensive federation testing.
67-**Architecture:** Tests use a hybrid docker management approach - check if services are running, start them if not, reset volumes for clean state. The Node.js PDS is configured with `relayHost` to notify the local relay after commits. New test suite verifies events flow through the relay correctly.
89**Tech Stack:** Docker Compose, Vitest, Node.js `child_process` for docker management, WebSocket for firehose tests.
10···175**Files:**
176- Modify: `test/helpers/node-server.js`
177178-**Step 1: Add USE_LOCAL_INFRA constant and relayHost config**
179180Replace the entire file with:
181···206 hostname: USE_LOCAL_INFRA ? 'host.docker.internal:3000' : `localhost:${TEST_PORT}`,
207 password: 'test-password',
208 // Use local relay when docker infrastructure is available
209- relayHost: USE_LOCAL_INFRA ? 'localhost:2470' : undefined,
210 // Keep appview pointing to production (for proxy tests)
211 appviewUrl: 'https://api.bsky.app',
212 appviewDid: 'did:web:api.bsky.app',
···45**Goal:** Integrate local PLC and relay from docker-compose into e2e tests for debugging sync issues and comprehensive federation testing.
67+**Architecture:** Tests use a hybrid docker management approach - check if services are running, start them if not, reset volumes for clean state. The Node.js PDS is configured with `relayUrl` to notify the local relay after commits. New test suite verifies events flow through the relay correctly.
89**Tech Stack:** Docker Compose, Vitest, Node.js `child_process` for docker management, WebSocket for firehose tests.
10···175**Files:**
176- Modify: `test/helpers/node-server.js`
177178+**Step 1: Add USE_LOCAL_INFRA constant and relayUrl config**
179180Replace the entire file with:
181···206 hostname: USE_LOCAL_INFRA ? 'host.docker.internal:3000' : `localhost:${TEST_PORT}`,
207 password: 'test-password',
208 // Use local relay when docker infrastructure is available
209+ relayUrl: USE_LOCAL_INFRA ? 'localhost:2470' : undefined,
210 // Keep appview pointing to production (for proxy tests)
211 appviewUrl: 'https://api.bsky.app',
212 appviewDid: 'did:web:api.bsky.app',