TanStackT
TanStack4mo ago
5 replies
uniform-turquoise

Deploying to a node-server

I have created a small app with Tanstack Start, everything works well locally and now I want to deploy it to my ubuntu server running node. However, when I build it it builds a dist folder with a client and server folders inside it. But looking at the packages.json file, the start command looks like this: "start": "node .output/server/index.mjs",

I don't have any .outputdirectory? If I change it to run the /dist/server/server.js file nothing happens and the program exits immedietly.
I have searched the web and here for answers but found none so far.<

Grateful for help.
Was this page helpful?