bindingPayload sent mapping_id as Number(id), which is 0 for every current mapping id, so every binding created or edited from the dashboard was refused. A new binding now starts with a generated secret the operator copies to the sender; an edit keeps the stored one unless replaced. The dev proxy keeps the browser's Host and forwards /webhooks. Checked with typecheck, task ui and task test:ui; the full gate was not run.
36 lines
1.1 KiB
TypeScript
36 lines
1.1 KiB
TypeScript
import { defineConfig } from "vite";
|
|
import vue from "@vitejs/plugin-vue";
|
|
import tailwindcss from "@tailwindcss/vite";
|
|
|
|
export default defineConfig({
|
|
plugins: [vue(), tailwindcss()],
|
|
resolve: {
|
|
alias: {
|
|
"@": new URL("./src", import.meta.url).pathname,
|
|
},
|
|
},
|
|
base: "/",
|
|
build: {
|
|
outDir: "dist",
|
|
emptyOutDir: true,
|
|
rollupOptions: {
|
|
output: {
|
|
entryFileNames: "assets/[name].js",
|
|
chunkFileNames: "assets/[name].js",
|
|
assetFileNames: "assets/[name].[ext]",
|
|
},
|
|
},
|
|
},
|
|
server: {
|
|
// Proxies the API to a locally running archie-ui (the process that serves
|
|
// the dashboard) so the frontend can be developed without rebuilding Go.
|
|
// changeOrigin stays false: archie-ui refuses a mutation whose Origin
|
|
// does not match its Host, and the browser's Origin is this dev server.
|
|
proxy: {
|
|
"/api": { target: "http://127.0.0.1:8484", changeOrigin: false },
|
|
"/health": { target: "http://127.0.0.1:8484", changeOrigin: false },
|
|
"/webhooks": { target: "http://127.0.0.1:8484", changeOrigin: false },
|
|
},
|
|
},
|
|
});
|