We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ffc029 commit e1459b3Copy full SHA for e1459b3
1 file changed
packages/app-tanstack-start-react/vite.config.ts
@@ -1,11 +1,14 @@
1
-import { defineConfig } from 'vite'
2
import { tanstackStart } from '@tanstack/react-start/plugin/vite'
3
import viteReact from '@vitejs/plugin-react'
4
import { nitro } from 'nitro/vite'
+import { defineConfig } from 'vite'
5
6
const isSpa = process.env.BUILD_MODE === 'spa'
7
8
export default defineConfig({
9
+ preview: {
10
+ host: '127.0.0.1',
11
+ },
12
plugins: [
13
...(isSpa ? [] : [nitro({ preset: 'node-middleware' })]),
14
tanstackStart({ spa: { enabled: isSpa } }),
0 commit comments