mirror of
https://github.com/wu736139669/hapi.git
synced 2026-11-29 06:13:46 +00:00
When CLI_API_TOKEN is provided via environment variable, persist it to settings.json if not already saved. This prevents token regeneration if the env var fails to load on subsequent startups, ensuring token consistency across server restarts.