orlybot
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:

VariablePurpose
ORLYBOT_SITE_URLCanonical public URL for metadata and sitemap entries.
ORLYBOT_APP_URLBase URL for the landing-page sign-in link.

Do not place credentials in the public-site environment. Its values are compiled into static output.

On this page