Refactor and more linking

This commit is contained in:
Dunemask 2022-08-12 13:08:00 +00:00
parent f17c7e01f5
commit 2db11ac3dd
24 changed files with 197 additions and 177 deletions

View file

@ -1,5 +1,6 @@
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import path from "node:path";
export default () => {
return defineConfig({
@ -10,16 +11,25 @@ export default () => {
port: 443,
},
proxy: {
'/api': 'http://localhost:52000',
'/socket.io': {
target: 'ws://localhost:52000',
ws: true
}
}
"/api": "http://localhost:52000",
"/socket.io": {
target: "ws://localhost:52000",
ws: true,
},
},
},
build: {
outDir: "./build",
},
base: "/qualiteer/",
resolve: {
alias: {
"@qltr/util": path.resolve("./src/util/"),
"@qltr/queries": path.resolve("./src/util/queries"),
"@qltr/jobs": path.resolve("./src/ctx/JobContext.jsx"),
"@qltr/store": path.resolve("./src/ctx/StoreContext.jsx"),
"@qltr/initiator": path.resolve("./lib/sockets/clients/Initiator.js"),
},
},
});
};