auth in vite
This commit is contained in:
1 parent
5792e9c037
commit
11ca2b7b79
1 file changed
+8
-2
@@ -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,
|
||||
},
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user