From 11ca2b7b797736bdd7dd2ddb99c12e52d3546d04 Mon Sep 17 00:00:00 2001 From: matst80 Date: Sat, 19 Sep 2026 09:51:55 +0200 Subject: [PATCH] auth in vite --- otel-ui/vite.config.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/otel-ui/vite.config.ts b/otel-ui/vite.config.ts index e21d795..d952689 100644 --- a/otel-ui/vite.config.ts +++ b/otel-ui/vite.config.ts @@ -2,6 +2,8 @@ import { defineConfig } from "vite"; import react from "@vitejs/plugin-react"; import tailwindcss from "@tailwindcss/vite"; +const target = "https://otel.k6n.net"; + // https://vite.dev/config/ export default defineConfig({ plugins: [react(), tailwindcss()], @@ -13,11 +15,15 @@ export default defineConfig({ server: { proxy: { "/api": { - target: "http://localhost:8080", + target: target, + changeOrigin: true, + }, + "/auth_callback": { + target: target, changeOrigin: true, }, "/ws": { - target: "ws://localhost:8080", + target: target, ws: true, }, },