| 123456789101112131415161718192021222324 |
- import { defineConfig } from "vite";
- import react from "@vitejs/plugin-react";
- import tailwindcss from "@tailwindcss/vite";
- import { fileURLToPath, URL } from "node:url";
- export default defineConfig({
- plugins: [react(), tailwindcss()],
- resolve: {
- alias: {
- "@": fileURLToPath(new URL("./src", import.meta.url)),
- },
- },
- server: {
- proxy: {
- "/api": {
- target: "http://localhost:8090",
- changeOrigin: true,
- },
- },
- },
- build: {
- outDir: "dist",
- },
- });
|