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 react from "@vitejs/plugin-react";
import tailwindcss from "@tailwindcss/vite"; import tailwindcss from "@tailwindcss/vite";
const target = "https://otel.k6n.net";
// https://vite.dev/config/ // https://vite.dev/config/
export default defineConfig({ export default defineConfig({
plugins: [react(), tailwindcss()], plugins: [react(), tailwindcss()],
@@ -13,11 +15,15 @@ export default defineConfig({
server: { server: {
proxy: { proxy: {
"/api": { "/api": {
target: "http://localhost:8080", target: target,
changeOrigin: true,
},
"/auth_callback": {
target: target,
changeOrigin: true, changeOrigin: true,
}, },
"/ws": { "/ws": {
target: "ws://localhost:8080", target: target,
ws: true, ws: true,
}, },
}, },