Skip to content
Source
Sign inSign up
TanStack/router
Open History to see the last commit

vite.config.ts

32 lines628 Bytes

1import { tanstackStart } from '@tanstack/react-start/plugin/vite'
2import { defineConfig } from 'vite'
3import viteReact from '@vitejs/plugin-react'
4import tailwindcss from '@tailwindcss/vite'
5​
6export default defineConfig({
7 base: '/test/',
8 server: {
9 port: 3000,
10 },
11 resolve: {
12 tsconfigPaths: true,
13 },
14 plugins: [
15 tailwindcss(),
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})