# ─── PostgreSQL ─────────────────────────────────────────────── # Не обязательны, если CALENDAR_RUN_MOCK_DB=1 (только HTTP API без БД). DB_HOST=localhost DB_PORT=5432 DB_NAME=calendar_run DB_USER=calendar_user DB_PASSWORD=calendar_pass # ─── Backend API ────────────────────────────────────────────── # Порт: сначала читается PORT (если задан), иначе API_PORT, иначе 3001. # PORT=3001 API_PORT=3001 # ─── Dev/CI: без PostgreSQL для smoke API (не для migrate/seed) ─ # CALENDAR_RUN_MOCK_DB=1 # ─── CORS ───────────────────────────────────────────────────── # Allowed origin for the frontend (Vite dev server default) CORS_ORIGIN=http://localhost:5173 # ─── Frontend (Vite) ───────────────────────────────────────── # Public URL of the API, used in SPA code via import.meta.env VITE_API_BASE_URL=http://localhost:3001