Open History to see the last commit
1import { defineConfig } from 'vite'
2import { tanstackStart } from '@tanstack/react-start/plugin/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 outputPath: 'index.html',
18 },
19 },
20 pages: [
21 {
22 path: '/posts/1',
23 prerender: { enabled: true, outputPath: '/posts/1/index.html' },
24 },
25 ],
26 }),
27 ],
28})