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
Project ID:
7c69688b-ac40-4119-aa59-af1c425ac66d
7c69688b-ac40-4119-aa59-af1c425ac66d
Solution
this will likely help you
https://docs.railway.app/troubleshoot/fixing-common-errors
thanks
got it working?
I am testing rn
Working, thanks
awesome!
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
oh course, thats how it works, you shouldn't be committing your .env file to github
hmm ok maybe rename for .env.local
because is local env
that works too