refactor(vite.config): fix local ui development proxy

This commit is contained in:
Adam Shiervani 2025-08-12 16:55:51 +02:00
parent c51bdc50b5
commit 7408195cd9
1 changed files with 3 additions and 5 deletions

View File

@ -17,11 +17,7 @@ export default defineConfig(({ mode, command }) => {
const { JETKVM_PROXY_URL, USE_SSL } = process.env;
const useSSL = USE_SSL === "true";
const plugins = [
tailwindcss(),
tsconfigPaths(),
react()
];
const plugins = [tailwindcss(), tsconfigPaths(), react()];
if (useSSL) {
plugins.push(basicSsl());
}
@ -41,6 +37,8 @@ export default defineConfig(({ mode, command }) => {
"/storage": JETKVM_PROXY_URL,
"/cloud": JETKVM_PROXY_URL,
"/developer": JETKVM_PROXY_URL,
"/microphone": JETKVM_PROXY_URL,
"/audio": JETKVM_PROXY_URL,
}
: undefined,
},