Skip to content
Source
Sign inSign up
TanStack/router
Open History to see the last commit

vite.config.ts

33 lines711 Bytes

1import { tanstackStart } from '@tanstack/solid-start/plugin/vite'
2import { defineConfig } from '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 crawlLinks: true,
19 },
20 },
21 sitemap: {
22 host: 'https://localhost:3000',
23 },
24 prerender: {
25 failOnError: true,
26 filter: (page) => {
27 return !page.path.includes('exist')
28 },
29 },
30 }),
31 viteSolid({ ssr: true }),
32 ],
33})