R
RunPod•5mo ago
prongs

Environment Variable in Serverless

Hello, quick question, how do I pass environment variables in a request for serverless endpoint? Espcially assign them with a value dynamically while sending a request.
Solution:
Modify your handler to read the data from request payload instead of environment variables.
Jump to solution
3 Replies
digigoblin
digigoblin•5mo ago
Already answered you in #🎤|general , you should post to 1 place only and not multiple places. You can't pass environment variables at request level, they are done at template level.
Solution
digigoblin
digigoblin•5mo ago
Modify your handler to read the data from request payload instead of environment variables.
prongs
prongsOP•5mo ago
Thank you, that worked
Want results from more Discord servers?
Add your server