Sync DB_URL env var into my Vercel Preview git-branch-base environment
Anonymous
TRIALOP

3 years ago

I have enabled PR environments so when I create a PR on GitHub I retrieve a new env automatically created on Railway (e.g.: myapp-pr-1) with all new environment variables (e.g.: DATABASE_URL).

I host my database on Railway and my Nextjs app on Vercel.

I have also enabled the Vercel integration to sync all environments variables… But my Railway environment freshly created by my GitHub PR don't sync my database environment variables to my Vercel Preview environment (related to my GitHub PR branch of course - see the screenshot attached).

I can sync that way:

  • Railway production -> Vercel Production

  • Railway any-env -> Vercel Preview

I see anything to sync that way:

  • Railway myapp-pr-1 -> Vercel Preview (git branch)

Is there a way to sync all my PR-based database environment variables into my git-branch-based Vercel Preview environment?

Thanks for you help.

0 Replies

Anonymous
TRIALOP

3 years ago

Sync DB_URL env var into my git-branch-base Vercel Preview environment


Anonymous
TRIALOP

3 years ago

Sync DB_URL env var into my Vercel Preview git-branch-base environment


Hey @Christophe Ribeiro - can you share your project-id please?


Anonymous
TRIALOP

3 years ago

Hi @angelo here is 850ce514-360c-490f-bb8c-2498054596c6


Anonymous
TRIALOP

3 years ago

Any idea @angelo ?


Anonymous
TRIALOP

3 years ago

@angelo Nope?


Oh dear super sorry


Been in a couple of rabbit holes today


Once I am at my desk- will adress this


Keep in mind


<#850421848797741096> - don’t tag the team.


Anonymous
TRIALOP

3 years ago

Sorry for the tag 🫢


@Christophe Ribeiro - yep, just found the convo that got buried, so we don't have a read into the vercel PR env when its made hence why we can't sync it that way


Meaning, when a PR is made, Railway isn't aware of the vercel PR env to pass variables to.


Now good news, Greg, our engineer working on the variables experience is going to make this connection bi-directional so Vercel can talk to us to share vars. But it will be some time.


Sorry again for the late reply, things have been hectic and trying to hire for support.


Anonymous
TRIALOP

3 years ago

Thanks for your transparency.

Is there a way to track the progress of what Greg will do about the issue?


Hmmm, what you described is like my dream of having you peer into our roadmap and you get to see a ticket get dragged into completion.


I don't think thats now possible unless he decides to jump in this thread. However, I think we will have something about this in the changelog tomorrow.


michael-land
PRO

2 years ago

is this implemented as 2024? i cannot see my pr environment on the integration page

1233445543062278100
1233445543322189800


huyouare
PRO

2 years ago

+1. also looking for this feature!


huyouare
PRO

2 years ago

@Michael Li any other ideas how to achieve the preview <> preview integration?


huyouare
PRO

2 years ago

i'd imagine this is the main reason folks are using railway


brody
EMPLOYEE

2 years ago

a solution to this could be to run what you are running on vercel on railway instead


huyouare
PRO

2 years ago

@Brody interesting idea, but we're very happy with hosting our nextjs app on vercel


Loading...