fix: use node-server preset for proper static asset serving

This commit is contained in:
2026-04-21 23:38:03 +02:00
parent acc02d20a4
commit 62e73a4499
4 changed files with 34 additions and 4 deletions

View File

@@ -1,8 +1,7 @@
import { defineConfig } from 'vite'
import { devtools } from '@tanstack/devtools-vite'
import { tanstackStart } from '@tanstack/react-start/plugin/vite'
import { nitro } from 'nitro/vite'
import viteReact from '@vitejs/plugin-react'
import tailwindcss from '@tailwindcss/vite'
@@ -18,6 +17,7 @@ const config = defineConfig({
!isProd && devtools(),
tailwindcss(),
tanstackStart(),
nitro({ preset: 'node-server' }),
viteReact(),
].filter(Boolean),
})