Open History to see the last commit
1import { defineConfig } from 'vite'
2import { devtools } from '@tanstack/devtools-vite'
3import { tanstackStart } from '@tanstack/react-start/plugin/vite'
4import viteReact from '@vitejs/plugin-react'
5import viteTsConfigPaths from 'vite-tsconfig-paths'
6import { nitro } from 'nitro/vite'
7β
8const config = defineConfig({
9 plugins: [
10 devtools({
11 consolePiping: {},
12 }),
13 // Nitro v3 runs server code in a worker thread (separate globalThis).
14 // This is the exact setup that previously broke devtools event delivery.
15 nitro(),
16 viteTsConfigPaths({
17 projects: ['./tsconfig.json'],
18 }),
19 tanstackStart(),
20 viteReact(),
21 ],
22})
23β
24export default config