Server functions not working with forms
The server function url seems to always be set to http://localhost:3000, so it works in dev, but not in production.
Example from docs
1 Reply
passive-yellow•11mo ago
Hi, I see that using updateCount.url is meant to be used for progressive enhancement https://tanstack.com/router/latest/docs/framework/react/start/server-functions#no-js-server-functions
Despite that the code to handle it is hardcoding localhost:3000, I've opened a issue https://github.com/TanStack/router/issues/2720
In your case you are expected to call the server function in one of these ways I guess
