-
Notifications
You must be signed in to change notification settings - Fork 1
/
vite.config.ts
56 lines (54 loc) · 1.31 KB
/
vite.config.ts
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
import { vitePlugin as remix } from "@remix-run/dev";
import { defineConfig } from "vite";
import tsconfigPaths from "vite-tsconfig-paths";
import { flatRoutes } from "remix-flat-routes";
// import { vercelPreset } from '@vercel/remix/vite';
export default defineConfig({
server: {
port: 3000,
},
build: {
rollupOptions: {
// external: ['db/*.ts'],
},
target: 'esnext' //browsers can handle the latest ES features
},
plugins: [
remix({
presets: [
// vercelPreset() un comment if using vercel
],
future: {
v3_fetcherPersist: true,
v3_relativeSplatPath: true,
v3_throwAbortReason: true,
},
routes: async (defineRoutes) => {
return flatRoutes("routes", defineRoutes);
},
}),
tsconfigPaths(),
],
optimizeDeps: {
include: [
"@remix-run/node",
"date-fns",
"@phosphor-icons/react",
"drizzle-orm",
"remix-auth",
"remix-auth-socials",
"@radix-ui/react-avatar",
"@radix-ui/react-tooltip",
"clsx",
"tailwind-merge",
"drizzle-orm/node-postgres",
"pg",
"drizzle-orm/pg-core",
"react-markdown",
"@langchain/core/prompts",
"openai",
"@langchain/openai",
"langchain/chains/combine_documents",
],
},
});