We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
We frequently check environment (e.g. production, staging) but there is no default environment variable from trigger.dev runtime.
Add process.env.TRIGGER_ENV with production, staging and development.
process.env.TRIGGER_ENV
production
staging
development
example usage
export function isProd() { return ( process.env.VERCEL_ENV === 'production' || process.env.TRIGGER_ENV === 'production' ); }
Add MY_TRIGGER_ENV manually into project environment settings.
MY_TRIGGER_ENV
https://discord.com/channels/1066956501299777596/1316791509818937354/1316791509818937354
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Is your feature request related to a problem? Please describe.
We frequently check environment (e.g. production, staging) but there is no default environment variable from trigger.dev runtime.
Describe the solution you'd like to see
Add
process.env.TRIGGER_ENV
withproduction
,staging
anddevelopment
.example usage
Describe alternate solutions
Add
MY_TRIGGER_ENV
manually into project environment settings.Additional information
https://discord.com/channels/1066956501299777596/1316791509818937354/1316791509818937354
The text was updated successfully, but these errors were encountered: