TanStack Start is now 1.0, and Start apps deploy on Netlify. SSR, server routes, server functions, and middleware run on Netlify Functions. It's also what new Agent Runners projects start with by default. Start a new app Deploy the official template, or generate your own: npx create-tsrouter-app@latest --template file-router --add-ons tanchat,netlify Deploy an existing app Install the Netlify plugin: npm install -D @netlify/vite-plugin-tanstack-start Then add it to vite.config.ts after tanstackStart(): import { defineConfig } from 'vite' import { tanstackStart } from '@tanstack/react-start/plugin/vite' import netlify from '@netlify/vite-plugin-tanstack-start' export default defineConfig({ plugins: [tanstackStart(), netlify()], }) Add a netlify.toml with your build settings: [build] command = "vite build" publish = "dist/client" Develop locally against the real platform The plugin emulates Netlify in your dev server, so you can build against the same primitives you'll use in production, without the Netlify CLI:
Continue reading...
- Serverless functions and edge functions
- Blobs and Netlify Database
- Cache API and Image CDN
- Redirects, rewrites, and headers
- Environment variables
- AI Gateway
Continue reading...