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

vite.config.ts

24 lines517 Bytes

1import { tanstackStart } from '@tanstack/react-start/plugin/vite'
2import { defineConfig } from 'vite'
3import viteReact from '@vitejs/plugin-react'
4import tailwindcss from '@tailwindcss/vite'
5import { nitro } from 'nitro/vite'
6import rsc from '@vitejs/plugin-rsc'
7​
8export default defineConfig({
9 resolve: { tsconfigPaths: true },
10 server: {
11 port: 3000,
12 },
13 plugins: [
14 tailwindcss(),
15 tanstackStart({
16 rsc: {
17 enabled: true,
18 },
19 }),
20 rsc(),
21 viteReact(),
22 nitro(),
23 ],
24})