// vite.config.ts
export default defineConfig({
ssr: {
noExternal: [
"@convex-dev/r2",
"@convex-dev/twilio",
"@convex-dev/aggregate",
"@convex-dev/presence",
"@convex-dev/rate-limiter",
],
},
plugins: [
devtools(),
nitro({
vercel: {
functions: {
runtime: "bun1.x",
},
},
}),
// this is the plugin that enables path aliases
viteTsConfigPaths({
projects: ["./tsconfig.json"],
}),
tailwindcss(),
tanstackStart(),
viteReact({
babel: {
plugins: ["babel-plugin-react-compiler"],
},
}),
],
});
// vite.config.ts
export default defineConfig({
ssr: {
noExternal: [
"@convex-dev/r2",
"@convex-dev/twilio",
"@convex-dev/aggregate",
"@convex-dev/presence",
"@convex-dev/rate-limiter",
],
},
plugins: [
devtools(),
nitro({
vercel: {
functions: {
runtime: "bun1.x",
},
},
}),
// this is the plugin that enables path aliases
viteTsConfigPaths({
projects: ["./tsconfig.json"],
}),
tailwindcss(),
tanstackStart(),
viteReact({
babel: {
plugins: ["babel-plugin-react-compiler"],
},
}),
],
});