R
Railway13mo ago
RUNNb

Can't access api url (nestjs project)

So on my local env if I access localhost:port/api I can see api swagger documentation. Also I can do any request. When deployed on railway I get no errors, I see app running logs but can't access api documentation page or do any request. Any ideas on what is possibly going on?
12 Replies
Percy
Percy13mo ago
Project ID: 7c69688b-ac40-4119-aa59-af1c425ac66d
RUNNb
RUNNb13mo ago
7c69688b-ac40-4119-aa59-af1c425ac66d
Solution
RUNNb
RUNNb13mo ago
RUNNb
RUNNb13mo ago
thanks
Brody
Brody13mo ago
got it working?
RUNNb
RUNNb13mo ago
I am testing rn Working, thanks
Brody
Brody13mo ago
awesome!
RUNNb
RUNNb13mo ago
Also 1 question about vars. I have a nextjs project and I am overwriting the vars on settings and I still got the vars on .env inside the project
Brody
Brody13mo ago
oh course, thats how it works, you shouldn't be committing your .env file to github
RUNNb
RUNNb13mo ago
hmm ok maybe rename for .env.local because is local env
Brody
Brody13mo ago
that works too