mirror of
https://github.com/warmbly/warmbly.git
synced 2026-09-06 00:01:24 +00:00
19 lines
579 B
TypeScript
19 lines
579 B
TypeScript
import { defineConfig } from "vite";
|
|
import react from "@vitejs/plugin-react";
|
|
|
|
// The built app is served by the Go forms service (cmd/forms), which owns
|
|
// /f/<publicId> shells, per-form CSP headers and the same-origin /api. The
|
|
// dev server proxies /api to a locally running `make forms` service.
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
server: {
|
|
port: 5175,
|
|
proxy: {
|
|
"/api": {
|
|
target: process.env.FORMS_API_URL ?? "http://localhost:8090",
|
|
changeOrigin: true,
|
|
},
|
|
},
|
|
},
|
|
});
|