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

vite.config.ts

20 lines468 Bytes

1import { defineConfig } from 'vite'
2import tsConfigPaths from 'vite-tsconfig-paths'
3import { tanstackStart } from '@tanstack/react-start/plugin/vite'
4import viteReact from '@vitejs/plugin-react'
5​
6export default defineConfig({
7 base: '/custom/basepath',
8 server: {
9 port: 3000,
10 },
11 plugins: [
12 tsConfigPaths({
13 projects: ['./tsconfig.json'],
14 }),
15 tanstackStart({
16 vite: { installDevServerMiddleware: true },
17 }),
18 viteReact(),
19 ],
20})