How can I use GCP Transcoder API with Vercel?

I want to use the GCP transcoder on my vercel project but the transcoder authorization uses ADC which looks for a service-key.json file. I can’t publish this file to Vercel so I have it in an env variable which works for other GCP functions. However, it seems like the ADC for the transcoder is automatic so it doesn’t look through the env variables. I half-heartedly tried using OIDC but was having trouble with getting step 8 of the setup. Any help would be appreciated.

For anyone else running into this issue I ended up putting the contents of the service-account.json file into an env variable and then writing the value into a new service-account.json file in the tmp folder.

1 Like

Thanks for coming back and sharing what worked for you, @dmarcusyoung! This will be helpful to other community members :smile:

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.