Yesterday's Top Poster

TanStack Start 1.0 deploys on Netlify

  • Thread starter Thread starter Netlify
  • Start date Start date
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:
  • Serverless functions and edge functions
  • Blobs and Netlify Database
  • Cache API and Image CDN
  • Redirects, rewrites, and headers
  • Environment variables
  • AI Gateway
Start with Agent Runners New projects you start with Agent Runners use TanStack Start 1.0 unless another framework is specified. Read the TanStack Start guide · Explore the template

Continue reading...
 
Back
Top