Open History to see the last commit
1import { tanstackStart } from '@tanstack/react-start/plugin/vite'
2import { defineConfig } from 'vite'
3import tsConfigPaths from 'vite-tsconfig-paths'
4import viteReact from '@vitejs/plugin-react'
5import tailwindcss from '@tailwindcss/vite'
6β
7export default defineConfig({
8 server: {
9 port: 3000,
10 },
11 plugins: [
12 tailwindcss(),
13 tsConfigPaths({
14 projects: ['./tsconfig.json'],
15 }),
16 tanstackStart({
17 spa: {
18 enabled: true,
19 prerender: {
20 crawlLinks: true,
21 },
22 },
23 sitemap: {
24 host: 'https://localhost:3000',
25 },
26 prerender: {
27 failOnError: false,
28 },
29 }),
30 viteReact(),
31 ],
32})