32 lines
675 B
TypeScript
32 lines
675 B
TypeScript
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()],
|
|
build: {
|
|
// Upload these maps to the receiver during deployment; do not publish
|
|
// them with the static UI.
|
|
sourcemap: true,
|
|
},
|
|
server: {
|
|
proxy: {
|
|
"/api": {
|
|
target: target,
|
|
changeOrigin: true,
|
|
},
|
|
"/auth_callback": {
|
|
target: target,
|
|
changeOrigin: true,
|
|
},
|
|
"/ws": {
|
|
target: target,
|
|
ws: true,
|
|
},
|
|
},
|
|
},
|
|
});
|