added full keycloak support. Partial Quantum backend support, Moved to

.env for config

- removed the globalVars variable for a lack of need
- changed the documentation page for test of multilevel navigation
- added machines page to route
- cleaned up dependencies for build
- changed config to split imports
This commit is contained in:
2026-04-26 16:25:02 +03:00
parent 8e78b8cb47
commit 8449da8373
33 changed files with 863 additions and 417 deletions

View File

@@ -1,14 +1,33 @@
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import tsconfigPaths from "vite-tsconfig-paths";
import { baseDomain, basePort, baseUrl } from "./src/GlobalVars";
import dotenv from "dotenv";
dotenv.config();
// https://vite.dev/config/
export default defineConfig({
plugins: [react(), tsconfigPaths()],
server: {
host: baseDomain,
port: basePort,
host: process.env.VITE_HOSTNAME,
port: Number(process.env.VITE_PORT),
},
preview: {
port: Number(process.env.VITE_PORT),
},
base: "/" + process.env.VITE_BASE_PATH,
build: {
rollupOptions: {
output: {
manualChunks(id) {
if (id.includes("node_modules")) {
return id
.toString()
.split("node_modules/")[1]
.split("/")[0]
.toString();
}
},
},
},
},
base: baseUrl,
});