R
Railway15mo 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
Percy15mo ago
Project ID: 7c69688b-ac40-4119-aa59-af1c425ac66d
RUNNb
RUNNb15mo ago
7c69688b-ac40-4119-aa59-af1c425ac66d
Solution
RUNNb
RUNNb15mo ago
RUNNb
RUNNb15mo ago
thanks
Brody
Brody15mo ago
got it working?
RUNNb
RUNNb15mo ago
I am testing rn Working, thanks
Brody
Brody15mo ago
awesome!
RUNNb
RUNNb15mo 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
Brody15mo ago
oh course, thats how it works, you shouldn't be committing your .env file to github
RUNNb
RUNNb15mo ago
hmm ok maybe rename for .env.local because is local env
Brody
Brody15mo ago
that works too