Mismatched documentation on server routes in Tanstack Start? #5806
-
|
The documentation at https://tanstack.com/start/latest/docs/framework/react/guide/server-routes describes how to define server routes using import { createFileRoute } from '@tanstack/react-router'
export const Route = createFileRoute('/hello')({
server: {
handlers: {
GET: async ({ request }) => {
return new Response('Hello, World!')
},
},
},
})However, this feature appears to not be supported in the The export interface FilebaseRouteOptionsInterface<...> {
validateSearch?: ...
shouldReload?: ...
context?: ...
ssr?: ...
beforeLoad?: ...
loaderDeps?: ...
remountDeps?: ...
loader?: ...
// No 'server' property
}I also don't see any reference to a server property on the web documentation at https://tanstack.com/router/latest/docs/framework/react/api/router/createFileRouteFunction#createfileroute-returns. Am I just setting something up incorrectly? We're using the following tanstack packages: "@tanstack/react-router": "^1.135.0",
"@tanstack/react-router-devtools": "^1.134.13",
"@tanstack/react-start": "^1.135.0",
"@tanstack/react-table": "^8.21.3",
"@tanstack/router-plugin": "^1.134.13",
"@tanstack/router-vite-plugin": "^1.134.13",
"@tanstack/start": "^1.120.20",Thanks in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
its a feature that start adds. it is not implemented in router |
Beta Was this translation helpful? Give feedback.
its a feature that start adds. it is not implemented in router