16 lines
336 B
TypeScript
16 lines
336 B
TypeScript
|
|
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
|
||
|
|
}
|
||
|
|
}
|
||
|
|
});
|