Will Tanstack Start support a custom server?
I'm hoping someone can answer the question here: https://github.com/TanStack/router/discussions/3777
Will the move away from Vinxi open up a world where we can use a custom server with Start? Is that in the cards at all?
GitHub
Custom server support for TanStack Start · TanStack router · Disc...
I'm considering migrating a project from Next.js to TanStack Start, but I've hit a roadblock: I'm running Next.js behind an Express.js server for various middleware, which Next.js makes...
6 Replies
genetic-orange•5mo ago
should already be possible with the node preset I suppose?
conscious-sapphire•5mo ago
I was curious about that and tried a custom nitro preset, while it does work it is just for production build, is not preset for development making it much less useful
genetic-orange•5mo ago
what do you mean exactly?
none of the presets are for dev
so we would need a different way for the dev server
conscious-sapphire•5mo ago
I believe @delambo is asking for an equivalent of react-router's createRequestHandler to allow using a customs server both in production and in development like in the react-router-hono-server project by exposing a custom vite dev server (via a vite plugin) to handle MHR and having the same server in dev
Another interesting example is epic stack using react-router 7 vite with and an express server
The simplest is probably https://github.com/remix-run/react-router-templates/tree/main/node-custom-server
harsh-harlequin•2mo ago
Also curious about this
genetic-orange•2mo ago
yes this will happen, just takes its time