-
Notifications
You must be signed in to change notification settings - Fork 112
Expand file tree
/
Copy pathvite.config.ts
More file actions
21 lines (20 loc) · 789 Bytes
/
Copy pathvite.config.ts
File metadata and controls
21 lines (20 loc) · 789 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import tailwindcss from '@tailwindcss/vite';
import { tanstackStart } from '@tanstack/react-start/plugin/vite';
import viteReact from '@vitejs/plugin-react';
import { defineConfig } from 'vite';
import tsconfigPaths from 'vite-tsconfig-paths';
import { nitro } from 'nitro/vite';
export default defineConfig({
server: { port: 3000 },
plugins: [
tsconfigPaths(),
tailwindcss(),
tanstackStart(),
// Nitro auto-detects the deploy target: Vercel/Cloudflare/Netlify in their
// CI (zero-config), and the Node.js server preset locally (.output/server,
// matching the `start` script). Override with SERVER_PRESET to force one,
// e.g. SERVER_PRESET=node-server / cloudflare-module / bun.
nitro({ preset: process.env.SERVER_PRESET }),
viteReact()
]
});