21 lines
470 B
TypeScript
21 lines
470 B
TypeScript
import path from "node:path";
|
|
|
|
import { reactRouter } from "@react-router/dev/vite";
|
|
import tailwindcss from "@tailwindcss/vite";
|
|
import { defineConfig } from "vite-plus";
|
|
|
|
export default defineConfig({
|
|
envDir: path.resolve(import.meta.dirname, "../.."),
|
|
plugins: [tailwindcss(), reactRouter()],
|
|
ssr: {
|
|
noExternal: true,
|
|
},
|
|
resolve: {
|
|
dedupe: ["convex", "react", "react-dom"],
|
|
tsconfigPaths: true,
|
|
},
|
|
server: {
|
|
allowedHosts: true,
|
|
},
|
|
});
|