Skip to main content

Configuration

The resolver is configured through environment variables. Invalid values stop the server at startup with a message naming the variable, rather than falling back silently.

Server​

VariableDefaultDescription
TRS_PORT3000Port to listen on. PORT is used if TRS_PORT is unset.
TRS_HOST0.0.0.0Interface to bind.

Cache​

VariableDefaultDescription
TRS_CACHE_MAX_ENTRIES10000Upper bound on cached query results (LRU). See Caching.

Adapters​

Each adapter documents its own variables:

Example​

TRS_PORT=8080 TRS_CACHE_MAX_ENTRIES=50000 pnpm start