auth in vite

This commit is contained in:
mats committed 2026-09-19 09:51:55 +02:00
1 parent 5792e9c037
commit 11ca2b7b79
1 file changed
+8 -2
+8 -2
View File
@@ -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,
},
},