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:
@@ -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,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user