2022-07-06 21:24:54 +00:00
|
|
|
import { defineConfig } from "vite";
|
|
|
|
import react from "@vitejs/plugin-react";
|
|
|
|
|
|
|
|
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: {
|
|
|
|
'/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-07-12 22:07:44 +00:00
|
|
|
});
|
|
|
|
};
|