import { defineConfig } from 'vite'; import mdx from 'fumadocs-mdx/vite'; import { nitro } from 'nitro/vite'; import react from '@vitejs/plugin-react'; import tailwindcss from '@tailwindcss/vite'; import { tanstackStart } from '@tanstack/react-start/plugin/vite'; import tsConfigPaths from 'vite-tsconfig-paths'; export default defineConfig({ server: { port: 3000 }, base: '/docs', plugins: [ mdx(await import('./source.config')), tailwindcss(), tsConfigPaths({ projects: ['./tsconfig.json'] }), tanstackStart({ prerender: { enabled: true } }), react(), // see https://tanstack.com/start/latest/docs/framework/react/guide/hosting for hosting config // we configured nitro by default nitro() ] });