Files

23 lines
450 B
TypeScript
Raw Permalink Normal View History

import path from "path"
import tailwindcss from "@tailwindcss/vite"
import react from "@vitejs/plugin-react-swc"
import { defineConfig } from "vite"
export default defineConfig({
plugins: [react(), tailwindcss()],
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
},
},
server: {
port: 5174,
proxy: {
"/api": {
target: "http://localhost:3002",
changeOrigin: true,
},
},
},
})