Static Server Functions SEO friendly?
I am just wondering this since I haven't tried it, if a page with data coming from createServerFn({ type: 'static' }) is crawlable by search engine spiders
6 Replies
equal-aqua•4mo ago
what do you mean by that?
fascinating-indigoOP•4mo ago
The type static serverFn runs at build time right? But does the route page becomes a static page as a result of that?
equal-aqua•4mo ago
no
unless you prerender
but how does that affect seo friendliness?
fascinating-indigoOP•4mo ago
Static Server Functions | TanStack Start React Docs
What are Static Server Functions? Static server functions are server functions that are executed at build time and cached as static assets when using prerendering/static-generation. They can be set to...
fascinating-indigoOP•4mo ago
Ah just want to be sure that search engines can index the pages without any problem like content is not yet visible.
Thanks @Manuel Schiller
fascinating-indigoOP•4mo ago
I didn't see this docs earlier. It's good. https://tanstack.com/start/latest/docs/framework/react/static-prerendering
Static Prerendering | TanStack Start React Docs
Static Prerendering is a feature of Nitro, and while it is available in TanStack Start, we are still exploring the best practices for using it. Tread lightly! Static prerendering is the process of gen...