You might have certain commands you want to run only in certain environments. For example enabling detailed logging in preview environments or purging your CDN cache for production environments. TheDocumentation Index
Fetch the complete documentation index at: https://developer.upsun.com/llms.txt
Use this file to discover all available pages before exploring further.
deploy and post_deploy hooks can access all runtime environment variables.
Use this to vary those hooks based on the environment.
Check the PLATFORM_ENVIRONMENT_TYPE variable to see if it’s in a production environment:
.upsun/config.yaml