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.
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 separateutils/env.py
to reduce duplication. Other environment variables should not be moved here if they are not used elsewhere to preserve locality.