Skip to content
Discussion options

You must be logged in to vote

I was using tanstack and I figured out the solution couple of days ago.

The way @tt-a1i suggested

Option 2: Use TanStack Start's built-in server

If you're using TanStack Start (the SSR framework for TanStack Router), it has its own production server. Check their docs for the correct production command - it might be something like:

CMD ["node", "dist/server.js"]

is not working because the generated file dist/server/server.js is a handler and not an actual server, so simple node dist/server/server.js will execute the file and process will complete.

Insted we have to create a server on our own to handle that.

import express from "express";
import path from "path";
import { pathToFileURL } f…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@nirvikpurkait
Comment options

@tt-a1i
Comment options

@nirvikpurkait
Comment options

Answer selected by nirvikpurkait
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants