vite.config.ts 492 B

12345678910111213141516171819202122232425
  1. import { defineConfig } from "vite";
  2. import react from "@vitejs/plugin-react";
  3. import path from "path";
  4. export default defineConfig({
  5. plugins: [react()],
  6. resolve: {
  7. alias: {
  8. "@": path.resolve(__dirname, "./src"),
  9. },
  10. },
  11. server: {
  12. port: 5173,
  13. proxy: {
  14. "/gateway": {
  15. target: "http://127.0.0.1:8000",
  16. changeOrigin: true,
  17. },
  18. "/health": {
  19. target: "http://127.0.0.1:8000",
  20. changeOrigin: true,
  21. },
  22. },
  23. },
  24. });