File size: 454 Bytes
68185ce
 
 
 
 
 
 
d89db9c
 
 
 
 
 
 
 
 
 
68185ce
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import tailwindcss from "@tailwindcss/vite";

// https://vite.dev/config/
export default defineConfig({
  plugins: [react(), tailwindcss()],
  server: {
    proxy: {
      "/api/mcp": {
        target: "https://api.shreyas.natoma.dev",
        changeOrigin: true,
        secure: true,
        rewrite: (path) => path.replace(/^\/api\/mcp/, "/mcp"),
      },
    },
  },
});