All Topics
All Topics
Technology
Technology
AI
AI
Business
Business
Entertainment
Entertainment
News
News
Programming
Programming
Security
Security
Science
Science
Design
Design
Environment
Environment
Finance
Finance
Crypto
Crypto
Politics
Politics
Sports
Sports
Education
Education
Gaming
Gaming
Art
Art
Music
Music
Health
Health
Books
Books
Food
Food
Travel
Travel
Personal
Personal
Bluesky
Twitter

Workers - Static prerendering support for TanStack Start

6mo ago

Source

CloudflareWorkers - Static prerendering support for TanStack Startcloudflare.com
Snippet from the RSS feed
TanStack Start apps can now prerender routes to static HTML at build time with access to build time environment variables and bindings, and serve them as static assets . To enable prerendering, configure the prerender option of the TanStack Start plugin in your Vite config: import { defineConfig } from "vite" ; import { cloudflare } from "@cloudflare/vite-plugin" ; import { tanstackStart } from "@tanstack/react-start/plugin/vite" ; export default defineConfig ( { plugins : [ cloudflare ( { viteEnvironment : { name : "ssr" } } ) , tanstackStart ( { prerender : { enabled : true , }, } ) , ] , } ) ; This feature requires @tanstack/react-start v1.138.0 or later. See the TanStack Start framework guide for more details.

You might also wanna read

Comments

Sign in to join the conversation.

No comments yet. Be the first.