Files
myDrive/vite.config.ts
T
2024-06-24 12:58:54 -04:00

22 lines
494 B
TypeScript

import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
export default defineConfig({
plugins: [react()],
build: {
outDir: "dist",
},
resolve: {
extensions: [".js", ".jsx", ".ts", ".tsx"], // Include these extensions
},
server: {
proxy: {
"/api": {
target: "http://localhost:3000", // The port where your backend is running
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, ""),
},
},
},
});