| | |
| | | import { resolve } from "node:path"; |
| | | import { defineConfig } from "./internal/vite-config/src"; |
| | | import { companies } from "./company.config"; |
| | | |
| | | const company = companies[process.env.COMPANY || '']; |
| | | if (company) { |
| | | process.env.VITE_APP_LOGO = company.logo; |
| | | process.env.VITE_APP_FAVICON = company.favicon; |
| | | } |
| | | |
| | | export default defineConfig(async () => { |
| | | return { |
| | |
| | | "/admin-api": { |
| | | changeOrigin: true, |
| | | rewrite: path => path.replace(/^\/admin-api/, ""), |
| | | target: "http://192.168.0.226:48080/admin-api", |
| | | target: "http://192.168.0.10:48080/admin-api", |
| | | ws: true, |
| | | }, |
| | | }, |