28 lines
560 B
TypeScript
28 lines
560 B
TypeScript
import tailwindcss from "@tailwindcss/vite";
|
|
import { devtools } from "@tanstack/devtools-vite";
|
|
|
|
import { tanstackStart } from "@tanstack/react-start/plugin/vite";
|
|
|
|
import viteReact from "@vitejs/plugin-react";
|
|
import { defineConfig } from "vite";
|
|
|
|
const config = defineConfig({
|
|
resolve: { tsconfigPaths: true },
|
|
plugins: [
|
|
devtools(),
|
|
tailwindcss(),
|
|
tanstackStart(),
|
|
viteReact({
|
|
babel: {
|
|
plugins: ["babel-plugin-react-compiler"],
|
|
},
|
|
}),
|
|
],
|
|
server: {
|
|
proxy: {
|
|
"/api": "http://localhost:4000",
|
|
},
|
|
},
|
|
});
|
|
|
|
export default config;
|