Files
tbbank-frontend/vite.config.ts
2026-08-21 16:28:23 +05:00

27 lines
580 B
TypeScript

import { fileURLToPath, URL } from "node:url";
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
// https://vite.dev/config/
export default defineConfig({
base: "/online/",
plugins: [react()],
resolve: {
alias: {
"@": fileURLToPath(new URL("./src", import.meta.url)),
},
},
preview: {
allowedHosts: ["test.webulgam.com"],
},
server: {
allowedHosts: ["test.webulgam.com"],
proxy: {
"/api": {
target: "https://test.webulgam.com/online-backend",
changeOrigin: true,
},
},
},
});