TranslogiX reads its runtime configuration from environment variables. This page lists every variable the application recognises, whether it is required or optional, and what degrades gracefully when an optional variable is not set.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/fatelessdev/translogiX/llms.txt
Use this file to discover all available pages before exploring further.
Variable reference
| Variable | Required | Description |
|---|---|---|
DATABASE_URL | Yes | PostgreSQL connection string used by both the application and Drizzle Kit tooling. |
BETTER_AUTH_SECRET | Yes | Secret key used by BetterAuth to sign and verify session tokens. Use a long random string. |
BETTER_AUTH_URL | Yes | Base URL of your deployed application (e.g. https://app.example.com). BetterAuth uses this to construct absolute callback URLs. |
NEXT_PUBLIC_GOOGLE_MAPS_API_KEY | No | Browser-side Google Maps API key. Enables the live map in the AI Ops dashboard. When omitted, a placeholder message is shown in place of the map; GPS data is still collected. |
GOOGLE_ROUTES_API_KEY | No | Server-side Google Routes API key. Enables real-time traffic data for route recommendations. When omitted, traffic levels are estimated from historical data. |
OPENWEATHER_API_KEY | No | OpenWeather API key. Enables live weather conditions for route recommendations. When omitted, weather conditions are estimated. |
The
NEXT_PUBLIC_ prefix on NEXT_PUBLIC_GOOGLE_MAPS_API_KEY means the value is embedded in the client-side bundle. Keep all other keys server-side only and never prefix them with NEXT_PUBLIC_.Optional integrations and graceful degradation
The AI Ops dashboard in TranslogiX shows the live status of each integration using badges. When a key is missing:- Google Maps — The map panel displays a notice reading “Add NEXT_PUBLIC_GOOGLE_MAPS_API_KEY to render the actual Google Map.” Shipment GPS coordinates are still tracked and surfaced in the text list below the panel.
- Google Routes — Route recommendations fall back to estimated traffic levels. The badge reads “Traffic estimated” instead of “Google traffic live”.
- OpenWeather — Route recommendations fall back to estimated weather conditions. The badge reads “Weather estimated” instead of “Weather live”.