init from gitlab

This commit is contained in:
texm
2023-04-25 14:33:14 +08:00
parent 6a85a41ff0
commit c8202a5c82
281 changed files with 19861 additions and 1 deletions

30
ui/vite.config.js Normal file
View File

@@ -0,0 +1,30 @@
import path from "path";
import { sveltekit } from '@sveltejs/kit/vite';
const config = {
plugins: [sveltekit()],
clearScreen: false,
logLevel: "info",
server: {
proxy: {
"/api/exec/socket": {
target: "ws://localhost:5330",
changeOrigin: true,
ws: true,
},
"/api": {
target: "http://localhost:5330",
changeOrigin: true,
}
}
},
resolve: {
alias: {
$src: path.resolve("./src"),
$components: path.resolve("./src/components"),
$common: path.resolve("./src/components/common"),
}
},
}
export default config;