Open History to see the last commit
1import { defineConfig } from 'vite'
2import { cloudflare } from '@cloudflare/vite-plugin'
3import { tanstackStart } from '@tanstack/react-start/plugin/vite'
4import viteReact from '@vitejs/plugin-react'
5import tailwindcss from '@tailwindcss/vite'
6β
7export default defineConfig({
8 resolve: { tsconfigPaths: true },
9 plugins: [
10 tailwindcss(),
11 cloudflare({ viteEnvironment: { name: 'ssr' }, inspectorPort: false }),
12 tanstackStart({
13 prerender: {
14 enabled: true,
15 filter: (page) => page.path === '/static',
16 },
17 }),
18 viteReact(),
19 ],
20})