Open History to see the last commit
1import { defineConfig } from 'vite'
2import { tanstackStart } from '@tanstack/solid-start/plugin/vite'
3import tsConfigPaths from 'vite-tsconfig-paths'
4import viteSolid from 'vite-plugin-solid'
5β
6export default defineConfig({
7 server: {
8 port: 3000,
9 },
10 plugins: [
11 tsConfigPaths({
12 projects: ['./tsconfig.json'],
13 }),
14 tanstackStart({
15 spa: {
16 enabled: true,
17 prerender: {
18 outputPath: 'index.html',
19 crawlLinks: true,
20 },
21 },
22 pages: [
23 {
24 path: '/posts/1',
25 prerender: { enabled: true, outputPath: '/posts/1/index.html' },
26 },
27 ],
28 }),
29 viteSolid({ ssr: true }),
30 ],
31})