File size: 694 Bytes
891fa77 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | import { defineConfig } from 'vite'
import { tanstackStart } from '@tanstack/react-start/plugin/vite'
import viteReact from '@vitejs/plugin-react'
import tailwindcss from '@tailwindcss/vite'
export default defineConfig(({ mode }) => ({
resolve: { tsconfigPaths: true },
preview: { port: 5173, strictPort: true, host: 'localhost' },
plugins: [
tailwindcss(),
tanstackStart(mode === 'demo' ? {
pages: [{ path: '/' }, { path: '/home' }, { path: '/demo' }],
prerender: {
enabled: true,
autoStaticPathsDiscovery: false,
autoSubfolderIndex: true,
crawlLinks: false,
failOnError: true,
},
} : {}),
viteReact(),
],
}))
|