Newer
Older
My-Portfolio / frontend / vite.config.js
  1. import { defineConfig } from "vite";
  2. import react from "@vitejs/plugin-react";
  3. // https://vite.dev/config/
  4. export default defineConfig({
  5. server: {
  6. port: 80,
  7. proxy: {
  8. "/api": {
  9. target: "https://jmpteixeira.myasustor.com:3001",
  10. changeOrigin: true,
  11. rewrite: (path) => path.replace(/^\/api/, ""),
  12. },
  13. },
  14. },
  15. plugins: [react()],
  16. });