vite.config.js 357 B

12345678910111213141516171819
  1. import { defineConfig } from "vite";
  2. import react from "@vitejs/plugin-react";
  3. export default defineConfig({
  4. build: {
  5. chunkSizeWarningLimit: 1000,
  6. },
  7. plugins: [react()],
  8. server: {
  9. proxy: {
  10. "/api": {
  11. target: "http://localhost:3030",
  12. changeOrigin: true,
  13. secure: false,
  14. ws: true,
  15. },
  16. },
  17. },
  18. });