Tanstack start app returning 502 error
johnyeocx
PROOP

2 months ago

Hi there, I'm trying to deploy a tanstack start app on Railway (just running the dev server as building and serving static files doesn't work for me due to some import issues.

The app is built through a Docker image (as it has submodule dependencies), then served through the vite dev command. Now, when my app is deployed, I'm constantly getting a 502 response and I can't figure out what the reason for this is.

I've already:
1. Checked that the port matches up
2. Checked that we're serving on host 0.0.0.0

$10 Bounty

2 Replies

diogoribeirodev
FREETop 5% Contributor

2 months ago

Can you provide a repo to debug?


fra
HOBBYTop 10% Contributor

2 months ago

Should you use the start command instead of the dev? Are you exposing the port in the docker file?


Loading...