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

9 months ago

?

Solved$10 Bounty

36 Replies

northeastt
HOBBYOP

9 months ago

N/A


northeastt
HOBBYOP

9 months ago

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


9 months ago

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


northeastt
HOBBYOP

9 months ago

??


northeastt
HOBBYOP

9 months ago

WHAT RU TALKINT ABT


9 months ago

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


northeastt
HOBBYOP

9 months ago

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


northeastt
HOBBYOP

9 months ago

yes


northeastt
HOBBYOP

9 months ago

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


9 months ago

Have you set that env var on vercel?


northeastt
HOBBYOP

9 months ago

not yet


northeastt
HOBBYOP

9 months ago

i need the link


northeastt
HOBBYOP

9 months ago

external access link


northeastt
HOBBYOP

9 months ago

so i can set VITEAPIURL= external acess link


northeastt
HOBBYOP

9 months ago

i cant find it in my deployment logs, or settings


northeastt
HOBBYOP

9 months ago

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


9 months ago

Have you successfully deployed your backend and generated a domain?


northeastt
HOBBYOP

9 months ago

yea


9 months ago

Then copy that domain and paste it in your Vercel frontend


9 months ago

🤔


northeastt
HOBBYOP

9 months ago

it pops up as an IP tho


northeastt
HOBBYOP

9 months ago

1380659437571674000


9 months ago

Seems right


northeastt
HOBBYOP

9 months ago

yea thats not a public internet link


9 months ago

You don't use that


9 months ago

You use the generated domain


northeastt
HOBBYOP

9 months ago

i cant find that


northeastt
HOBBYOP

9 months ago

where is it in railway


9 months ago

Click the Service -> Settings -> Public Networking


9 months ago

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


northeastt
HOBBYOP

9 months ago

thank you


9 months ago

Test it and lemme know if it works


northeastt
HOBBYOP

9 months ago

omg i kept navigating to the wrong settings im so dumb


northeastt
HOBBYOP

9 months ago

its working ty


9 months ago

np


9 months ago

!s


Status changed to Solved medim 9 months ago


Loading...