lemmy-atlas/vite.config.ts
2024-03-24 08:12:14 +01:00

17 lines
426 B
TypeScript

import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
// https://vitejs.dev/config/
export default defineConfig({
server: {
proxy: {
"/.netlify/functions/": {
target: "http://localhost:8888", // Update with your Netlify Dev server port
changeOrigin: true,
rewrite: (path) => path.replace("/.netlify/functions/", ""),
},
},
},
plugins: [react()],
});