30 lines
499 B
TypeScript
30 lines
499 B
TypeScript
import react from "@vitejs/plugin-react";
|
|
import { defineConfig } from "vite";
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
server: {
|
|
port: 3000,
|
|
host: "0.0.0.0",
|
|
proxy: {
|
|
"/api": {
|
|
target: "http://localhost:5000/trigger",
|
|
changeOrigin: false,
|
|
secure: false,
|
|
},
|
|
},
|
|
},
|
|
preview: {
|
|
port: 3000,
|
|
host: "0.0.0.0",
|
|
proxy: {
|
|
api: {
|
|
target: "http://localhost:5000",
|
|
changeOrigin: false,
|
|
secure: false,
|
|
},
|
|
},
|
|
},
|
|
});
|