vite.config.ts 308 B

1234567891011121314151617
  1. import react from "@vitejs/plugin-react";
  2. import { defineConfig } from "vite";
  3. export default defineConfig({
  4. plugins: [react()],
  5. server: {
  6. host: "127.0.0.1",
  7. port: 5174,
  8. proxy: {
  9. "/api": "http://127.0.0.1:4174",
  10. },
  11. },
  12. preview: {
  13. host: "127.0.0.1",
  14. port: 4175,
  15. },
  16. });