···1515# APPVIEW_DID=did:web:api.bsky.app
16161717# Optional: Relay for firehose
1818-# RELAY_HOST=https://bsky.network
1818+# RELAY_URL=https://bsky.network
19192020# Cloudflare-specific (not needed for Node.js)
2121# CLOUDFLARE_API_TOKEN=your_api_token_here
+1-1
README.md
···5151| HOSTNAME | No | Public hostname for the PDS |
5252| APPVIEW_URL | No | AppView URL for proxying |
5353| APPVIEW_DID | No | AppView DID for service auth |
5454-| RELAY_HOST | No | Relay URL for firehose notifications |
5454+| RELAY_URL | No | Relay URL for firehose notifications |
55555656## Deploy: Node.js
5757
···4455**Goal:** Integrate local PLC and relay from docker-compose into e2e tests for debugging sync issues and comprehensive federation testing.
6677-**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.
77+**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.
8899**Tech Stack:** Docker Compose, Vitest, Node.js `child_process` for docker management, WebSocket for firehose tests.
1010···175175**Files:**
176176- Modify: `test/helpers/node-server.js`
177177178178-**Step 1: Add USE_LOCAL_INFRA constant and relayHost config**
178178+**Step 1: Add USE_LOCAL_INFRA constant and relayUrl config**
179179180180Replace the entire file with:
181181···206206 hostname: USE_LOCAL_INFRA ? 'host.docker.internal:3000' : `localhost:${TEST_PORT}`,
207207 password: 'test-password',
208208 // Use local relay when docker infrastructure is available
209209- relayHost: USE_LOCAL_INFRA ? 'localhost:2470' : undefined,
209209+ relayUrl: USE_LOCAL_INFRA ? 'localhost:2470' : undefined,
210210 // Keep appview pointing to production (for proxy tests)
211211 appviewUrl: 'https://api.bsky.app',
212212 appviewDid: 'did:web:api.bsky.app',