10 months ago
Hello, I am working on deploying my full stack application in a Railway Project. I have successfully connected my backend to the DB and I can test it with the public URL. Now I was trying to connect my frontend to my backend in a similar way to how I connected the DB. Here are the ports of my applications, and the code config I made to set them up + the variable bindings.
Backend
The PORT env variable is also set to 3000.
Basically I think I did everything correctly, according to the docs? This is how I bound the env variable to link the frontend to backend
At this point I am genuinely stuck, and I am unsure where else to check for issues, since the railway-provided logs aren't helping me that much.
When connecting via the public URL, frontend works just fine, so there are no code issues.
3 Replies
10 months ago
Hey there! We've found the following might help you get unblocked faster:
- 📚 ENOTFOUND redis.railway.internal
- 🧵 Next.js + MongoDB Private URL on Railway - Connection Issues During Deployment
- 🧵 US East (Metal) private networking not working
If you find the answer from one of these, please let us know by solving the thread!
10 months ago
Could you post the deploy logs of your frontend nextjs application ?
Railway
Hey there! We've found the following might help you get unblocked faster: - [📚 ENOTFOUND redis.railway.internal](https://docs.railway.com/reference/errors/enotfound-redis-railway-internal) - [🧵 Next.js + MongoDB Private URL on Railway - Connection Issues During Deployment](https://station.railway.com/questions/next-js-mongo-db-private-url-on-railway-efbc4721) - [🧵 US East (Metal) private networking not working](https://station.railway.com/questions/us-east-metal-private-networking-not-w-588d452c) If you find the answer from one of these, please let us know by solving the thread!
10 months ago
The solution here helped: https://station.railway.com/questions/next-js-mongo-db-private-url-on-railway-efbc4721
It would be really helpful if the docs actually contained this information
Status changed to Open chandrika • 10 months ago
Status changed to Solved chandrika • 10 months ago