HackAtUCI / irvinehacks-site

Site for IrvineHacks 2024 through 2025
https://irvinehacks.com
1 stars 1 forks source link

[API] Refactor repeated instances of `STAGING` environment variable #314

Open taesungh opened 10 months ago

taesungh commented 10 months ago

In several different places in the API code, we reference the STAGING environment variable for specific preview-only behavior. This could be refactored into a separate utils/env.py to reduce duplication. Other environment variables should not be moved here if they are not used elsewhere to preserve locality.