-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathvite.config.ts
More file actions
33 lines (32 loc) · 818 Bytes
/
vite.config.ts
File metadata and controls
33 lines (32 loc) · 818 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
import tailwindcss from "@tailwindcss/vite";
import { tanstackStart } from "@tanstack/react-start/plugin/vite";
import { cloudflareWorkersDevEnvironmentShim } from "alchemy/cloudflare";
import { defineConfig } from "vite";
import tsConfigPaths from "vite-tsconfig-paths";
export default defineConfig({
server: {
port: 3000,
},
build: {
target: "esnext",
rollupOptions: {
external: ["node:async_hooks", "cloudflare:workers"],
},
},
plugins: [
tailwindcss(),
cloudflareWorkersDevEnvironmentShim(),
tsConfigPaths({
projects: ["./tsconfig.json"],
}),
tanstackStart({
target: "cloudflare-module",
tsr: {
routeTreeFileHeader: [
"/** biome-ignore-all lint/suspicious/noExplicitAny: code generated by @tanstack/react-start */",
],
quoteStyle: "double",
},
}),
],
});