Open History to see the last commit
1import { defineConfig } from 'vite'
2import tsConfigPaths from 'vite-tsconfig-paths'
3import { tanstackStart } from '@tanstack/react-start/plugin/vite'
4import viteReact from '@vitejs/plugin-react'
5import { isSpaMode } from './tests/utils/isSpaMode'
6β
7const spaModeConfiguration = {
8 enabled: true,
9 prerender: {
10 outputPath: 'index.html',
11 },
12}
13β
14export default defineConfig({
15 server: {
16 port: 3000,
17 },
18 plugins: [
19 tsConfigPaths({
20 projects: ['./tsconfig.json'],
21 }),
22 // @ts-ignore we want to keep one test with verboseFileRoutes off even though the option is hidden
23 tanstackStart({
24 spa: isSpaMode ? spaModeConfiguration : undefined,
25 }),
26 viteReact(),
27 ],
28})