#Invalid environment slug for this API key when deploying

1 messages · Page 1 of 1 (latest)

restive galleon
#

I'm trying to deploy to trigger.dev cloud but for some reason it's failing and giving me the error "Invalid environment slug for this API key. Make sure you are using an API key associated with that environment." in src/lib/server/trigger/generate.ts

Not sure what this error means though

tribal badge
restive galleon
tribal badge
#

No. How are you running the deploy command?

restive galleon
tribal badge
#

What’s in the file that error complains about?

"Invalid environment slug for this API key. Make sure you are using an API key associated with that environment." in src/lib/server/trigger/generate.ts`

restive galleon
#

wait

#

one sec

#

a bit embarrassing

#

wasnt getting env variables correctly

#

i changed it and it works fine now

#

thank you