@@ -9,7 +9,7 @@ optional mobile notifications and Live Activities.
99
1010The relay is intentionally not in the hot path for normal T3 Code traffic. After a client connects,
1111regular API and WebSocket traffic goes directly between that client and the selected environment.
12- See the [ cloud architecture overview] ( ./t3-code-cloud-auth-flow.html ) for the larger system
12+ See the [ cloud architecture overview] ( ../../docs /t3-code-cloud-auth-flow.html ) for the larger system
1313design.
1414
1515## Responsibilities
@@ -25,21 +25,21 @@ The relay currently owns:
2525- Persisting relay state and exposing relay-specific traces for diagnostics.
2626
2727The environment server and relay have separate credentials and trust boundaries. Read
28- [ Environment Authentication Profile] ( ./environment-auth.md ) before changing token,
28+ [ Environment Authentication Profile] ( ../../docs /environment-auth.md ) before changing token,
2929credential, or authorization behavior.
3030
3131## Code Map
3232
33- - [ ` alchemy.run.ts ` ] ( ../../infra/relay /alchemy.run.ts ) defines the deployed Alchemy stack.
34- - [ ` src/worker.ts ` ] ( ../../infra/relay /src/worker.ts ) wires Cloudflare bindings, runtime layers, queues, and HTTP APIs.
35- - [ ` src/http/Api.ts ` ] ( ../../infra/relay /src/http/Api.ts ) contains the relay HTTP handlers and authentication
33+ - [ ` alchemy.run.ts ` ] ( ./alchemy.run.ts ) defines the deployed Alchemy stack.
34+ - [ ` src/worker.ts ` ] ( ./src/worker.ts ) wires Cloudflare bindings, runtime layers, queues, and HTTP APIs.
35+ - [ ` src/http/Api.ts ` ] ( ./src/http/Api.ts ) contains the relay HTTP handlers and authentication
3636 boundaries.
37- - [ ` src/environments ` ] ( ../../infra/relay /src/environments ) contains environment linking, credentials, endpoint
37+ - [ ` src/environments ` ] ( ./src/environments ) contains environment linking, credentials, endpoint
3838 provisioning, and connection flows.
39- - [ ` src/agentActivity ` ] ( ../../infra/relay /src/agentActivity ) contains mobile device registration, activity state,
39+ - [ ` src/agentActivity ` ] ( ./src/agentActivity ) contains mobile device registration, activity state,
4040 APNs delivery, and queue processing.
41- - [ ` src/auth ` ] ( ../../infra/relay /src/auth ) contains relay token and DPoP proof handling.
42- - [ ` src/persistence/schema.ts ` ] ( ../../infra/relay /src/persistence/schema.ts ) defines persisted relay state. Keep
41+ - [ ` src/auth ` ] ( ./src/auth ) contains relay token and DPoP proof handling.
42+ - [ ` src/persistence/schema.ts ` ] ( ./src/persistence/schema.ts ) defines persisted relay state. Keep
4343 schema and migration changes together.
4444
4545Shared request and response schemas live in
@@ -83,7 +83,7 @@ vp run --filter t3code-relay deploy
8383```
8484
8585The stack provisions the Cloudflare Worker and queues, managed endpoint resources, database
86- connectivity, and relay tracing resources. Copy [ ` infra/relay/.env.example ` ] ( ../../infra/relay /.env.example ) to
86+ connectivity, and relay tracing resources. Copy [ ` infra/relay/.env.example ` ] ( ./.env.example ) to
8787` infra/relay/.env ` and fill in the deployment-specific values before deploying. Alchemy loads that
8888file from the relay directory. Runtime secrets include Clerk and APNs credentials. Production adopts
8989the configured API and tunnel DNS zones as retained Cloudflare resources. Personal stages reference
@@ -159,8 +159,8 @@ and hosted web builds.
159159
160160See:
161161
162- - [ T3 Cloud Clerk Setup] ( ./t3-cloud-clerk.md ) for Clerk keys, JWT templates, and waitlist
162+ - [ T3 Cloud Clerk Setup] ( ../../docs /t3-cloud-clerk.md ) for Clerk keys, JWT templates, and waitlist
163163 setup.
164- - [ Relay Observability] ( ../operations /relay-observability.md ) for deployment tracing and diagnostics.
165- - [ Cloud Architecture Overview] ( ./t3-code-cloud-auth-flow.html ) for the full link,
164+ - [ Relay Observability] ( ../../docs /relay-observability.md ) for deployment tracing and diagnostics.
165+ - [ Cloud Architecture Overview] ( ../../docs /t3-code-cloud-auth-flow.html ) for the full link,
166166 connect, endpoint, and notification flows.
0 commit comments