qualiteer/vite.config.js

36 lines
876 B
JavaScript
Raw Normal View History

2022-07-06 21:24:54 +00:00
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
2022-08-12 13:08:00 +00:00
import path from "node:path";
2022-07-06 21:24:54 +00:00
export default () => {
2022-07-12 22:07:44 +00:00
return defineConfig({
plugins: [react()],
server: {
host: "0.0.0.0",
hmr: {
port: 443,
},
2022-08-05 13:03:48 +00:00
proxy: {
2022-08-12 13:08:00 +00:00
"/api": "http://localhost:52000",
"/socket.io": {
target: "ws://localhost:52000",
ws: true,
},
},
2022-07-12 22:07:44 +00:00
},
2022-07-12 23:28:47 +00:00
build: {
outDir: "./build",
},
base: "/qualiteer/",
2022-08-12 13:08:00 +00:00
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"),
},
},
2022-07-12 22:07:44 +00:00
});
};