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

This commit is contained in:
Adam Shiervani 2025-08-12 16:55:51 +02:00
parent 629cdf59a7
commit 7e83015932
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 { JETKVM_PROXY_URL, USE_SSL } = process.env;
const useSSL = USE_SSL === "true"; const useSSL = USE_SSL === "true";
const plugins = [ const plugins = [tailwindcss(), tsconfigPaths(), react()];
tailwindcss(),
tsconfigPaths(),
react()
];
if (useSSL) { if (useSSL) {
plugins.push(basicSsl()); plugins.push(basicSsl());
} }
@ -41,6 +37,8 @@ export default defineConfig(({ mode, command }) => {
"/storage": JETKVM_PROXY_URL, "/storage": JETKVM_PROXY_URL,
"/cloud": JETKVM_PROXY_URL, "/cloud": JETKVM_PROXY_URL,
"/developer": JETKVM_PROXY_URL, "/developer": JETKVM_PROXY_URL,
"/microphone": JETKVM_PROXY_URL,
"/audio": JETKVM_PROXY_URL,
} }
: undefined, : undefined,
}, },