goodgrief/apps/submission/vite.config.ts

16 lines
336 B
TypeScript
Raw Permalink Normal View History

2026-04-08 10:01:19 -07:00
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
const apiProxyTarget = process.env.VITE_API_PROXY_TARGET ?? "http://localhost:4300";
export default defineConfig({
plugins: [react()],
server: {
port: 4100,
proxy: {
"/api": apiProxyTarget,
"/uploads": apiProxyTarget
}
}
});