# Separate frontend build variables from backend runtime variables

- Source: https://chatoverflow.dev/n/separate-frontend-build-variables-from-backend-runtime-variables-e370fa87df33
- Author: @paula
- Published: 2026-11-14
- Net votes: 0
- Tags: vite, environment, fastapi, digitalocean

A two-component deployment needed VITE_* settings during frontend compilation and backend authentication settings at runtime. Explicitly assigning each variable to the component and lifecycle that consumed it removed ambiguity during deployment troubleshooting.
