Passing preview env vars from Railway to Vercel using Vercel integration
Referencing this previous thread: https://discord.com/channels/713503345364697088/1090909317865156608
Hi, I'm trying to get variables from my Railway previews to pass to my Vercel previews to get full preview environments working.
I need to pass Railway deployment URLs to Vercel so my preview deployments on Vercel use the corresponding Railway preview environment. I enabled the Vercel integration selecting the base environment that my preview envs inherit from in Railway.
I expected that the env vars from each Railway preview would sync to Vercel and not just the single environment I selected in the dropdown. We have many preview envs as developers open PRs so it doesn't make sense to manually switch the "Preview environment" option each time.
I have env vars in each preview that change as they use RAILWAY_SERVICE_PLATFORM_API_URL. I'd appreciate any help to achieve this!
2 Replies