how do i find my VITE_API_URL to connect my backend to my frontend running on vercel?
northeastt
HOBBYOP

a year ago

?

Solved$10 Bounty

36 Replies

northeastt
HOBBYOP

a year ago

N/A


northeastt
HOBBYOP

a year ago

?????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????????


a year ago

This is community support and this question is not in any way related to Railway. So please be patient.


northeastt
HOBBYOP

a year ago

??


northeastt
HOBBYOP

a year ago

WHAT RU TALKINT ABT


a year ago

Is your backend on Railway and your front end on Vercel?


northeastt
HOBBYOP

a year ago

im askign if u make vite_api_url to connect backend to frontend public


northeastt
HOBBYOP

a year ago

yes


northeastt
HOBBYOP

a year ago

all i need is the link to set up my .env varibale


a year ago

Have you set that env var on vercel?


northeastt
HOBBYOP

a year ago

not yet


northeastt
HOBBYOP

a year ago

i need the link


northeastt
HOBBYOP

a year ago

external access link


northeastt
HOBBYOP

a year ago

so i can set VITE_API_URL= external acess link


northeastt
HOBBYOP

a year ago

i cant find it in my deployment logs, or settings


northeastt
HOBBYOP

a year ago

i connected my account to vercel through settings but it never explicitly states that they install the enviroment variable into ur vercel


a year ago

Have you successfully deployed your backend and generated a domain?


northeastt
HOBBYOP

a year ago

yea


a year ago

Then copy that domain and paste it in your Vercel frontend


a year ago

🤔


northeastt
HOBBYOP

a year ago

it pops up as an IP tho


northeastt
HOBBYOP

a year ago

1380659437571674122


a year ago

Seems right


northeastt
HOBBYOP

a year ago

yea thats not a public internet link


a year ago

You don't use that


a year ago

You use the generated domain


northeastt
HOBBYOP

a year ago

i cant find that


northeastt
HOBBYOP

a year ago

where is it in railway


a year ago

Click the Service -> Settings -> Public Networking


a year ago

Generate Domain button, point to port 8080 if it asks for a port


northeastt
HOBBYOP

a year ago

thank you


a year ago

Test it and lemme know if it works


northeastt
HOBBYOP

a year ago

omg i kept navigating to the wrong settings im so dumb


northeastt
HOBBYOP

a year ago

its working ty


a year ago

np


a year ago

!s


Status changed to Solved medim about 1 year ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...