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'
4β
5export default defineConfig({
6 server: {
7 port: 3000,
8 },
9 plugins: [
10 tsConfigPaths({
11 projects: ['./tsconfig.json'],
12 }),
13 tanstackStart({
14 spa: {
15 enabled: true,
16 prerender: {
17 crawlLinks: true,
18 },
19 },
20 sitemap: {
21 host: 'https://localhost:3000',
22 },
23 prerender: {
24 failOnError: false,
25 },
26 }),
27 ],
28})