Tanstack start app returning 502 error
johnyeocx
PROOP

5 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
FREE

5 months ago

Can you provide a repo to debug?


fra
HOBBYTop 5% Contributor

5 months ago

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


Welcome!

Sign in to your Railway account to join the conversation.

Loading...