bergersens
CCConvex Community
•Created by bergersens on 1/6/2025 in #support-community
Set environment variables in an action
ok thanks. i thougt i only cans et environment variables trough the cli on development stage and not in the prod stage, but then i would set a github action, thanks.
10 replies
CCConvex Community
•Created by bergersens on 1/6/2025 in #support-community
Set environment variables in an action
@erquhart do you have an idea?
i only can import an env
Apple({
clientSecret:process.env.APPLECLIENTSECRET
})
i want to do this dynamic, because the secret must be rotated every six months
10 replies
CCConvex Community
•Created by bergersens on 1/6/2025 in #support-community
Set environment variables in an action
I use Convex Auth and want to regenerate the client secret for Apple with each request. Unfortunately, this variable only accepts a string and not a function, whether async or sync.
So I thought it would be a good idea to at least reset the env variable every x days, since Apple’s servers allow it to be valid for a maximum of 6 months.
10 replies