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

AnonymousTRIAL

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

AnonymousTRIAL

3 years ago

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


AnonymousTRIAL

3 years ago

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


3 years ago

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


AnonymousTRIAL

3 years ago

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


AnonymousTRIAL

3 years ago

Any idea @angelo ?


AnonymousTRIAL

3 years ago

@angelo Nope?


3 years ago

Oh dear super sorry


3 years ago

Been in a couple of rabbit holes today


3 years ago

Once I am at my desk- will adress this


3 years ago

Keep in mind


3 years ago

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


AnonymousTRIAL

3 years ago

Sorry for the tag 🫢


3 years ago

@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


3 years ago

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


3 years ago

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.


3 years ago

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


AnonymousTRIAL

3 years ago

Thanks for your transparency.

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


3 years ago

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.


3 years ago

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-landPRO

a year ago

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

1233445543062278100
1233445543322189800


huyouarePRO

a year ago

+1. also looking for this feature!


huyouarePRO

a year ago

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


huyouarePRO

a year ago

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


a year ago

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


huyouarePRO

a year ago

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