Files
SupportBot-Dashboard/dashboard/vite.config.ts
T
Char b82f69783d Add dashboard UI source and track it in the repository.
Expose the Vite/React website source under dashboard/ (with node_modules still ignored) so the full dashboard can be built and maintained from this repo.
2026-07-26 13:09:19 +01:00

28 lines
545 B
TypeScript

import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import path from "path";
export default defineConfig({
plugins: [react()],
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
},
},
base: "/",
build: {
outDir: path.resolve(__dirname, "../public/dashboard"),
emptyOutDir: true,
},
server: {
port: 5173,
proxy: {
"/api": {
target: "http://localhost:3000",
changeOrigin: true,
cookieDomainRewrite: "localhost",
},
},
},
});