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

vite.config.ts

18 lines394 Bytes

1import { defineConfig } from 'vite'
2import { tanstackStart } from '@tanstack/react-start/plugin/vite'
3​
4export default defineConfig({
5 server: {
6 port: 3000,
7 },
8 plugins: [
9 tanstackStart({
10 srcDirectory: './src/app',
11 router: {
12 entry: '../router.tsx',
13 routesDirectory: '../routes',
14 generatedRouteTree: '../routeTree.gen.ts',
15 },
16 }),
17 ],
18})