react-query-questions
solid-query-questions
table-questions
virtual-questions
router-questions
react-charts-questions
ranger-questions
vue-query-questions
svelte-query-questions
bling-questions
form-questions
angular-query-questions
start-questions
db-questions
start-showcase
router-showcase
📣-announcements
Environment variables best practices
createServerOnlyFn
to return an environment variable so that it's not accidentally leaked to the client. However, in another section (https://tanstack.com/start/latest/docs/framework/react/environment-variables) it says that env variables aren't even accessible in client code unless the name is prefixed with VITE_
.
I'm struggling to understand in which circumstance each solution is supposed to be used, as from my understanding they both result in the same end functionality of the variable being withheld from the client bundle. Can anyone shed some light on this and help me understand the specific cases in which one approach should be preffered?
Thanks!...Delay Loading Page on Vercel
Server Routes / Functions not working properly
Cannot make react context work during SSR
Build & Preview 404
Server function middleware's aren't receiving the request object
type broken on useServerFn?
SSR environment is not ready
Claude Code can't run tanstack start in it's bash
How to throw a error in a middleware and catch it on parent middleware

How to access nonce in Middleware?
.server
context, so that we can properly set the CSP header?Where is staticFunctionMiddleware
staticFunctionMiddleware
cannot be found anywhere. Is there any smart import to do? Or other library to install? Or some module augmentation?@netlify/vite-plugin-tanstack-start' breaking hmr refresh?
Need Help
What is the purpose of useServerFn, all works without it
useQuery
(from TanStack Query, to fetch data from endpoint).
Example is as follows:
```
const getServerPosts = createServerFn().handler(async () => {...});...Why does throwing a redirect in the route loaders post RC trigger an error?

useParams is not propagating
Cannot access ServerFns
Start RC -> Failed to load the ES module