orlybot docsSelf-hosting
Configuration
Keep server, client, and public-site configuration separate.
Configuration
Server variables are validated in src/env.server.ts. Browser variables must use the VITE_ prefix and live in src/env.client.ts.
Application settings
Use .env for server settings such as database access, Valkey, object storage, authentication, AI defaults, and worker limits. Never import @/env.server from client code.
Public-site settings
The static site reads build-time values from site/.env:
| Variable | Purpose |
|---|---|
ORLYBOT_SITE_URL | Canonical public URL for metadata and sitemap entries. |
ORLYBOT_APP_URL | Base URL for the landing-page sign-in link. |
Do not place credentials in the public-site environment. Its values are compiled into static output.