Skip to content

SmythOS Studio: Open-Source Visual AI Agent Builder and deployable runtime stack from SmythOS. Start with an intuitive drag-and-drop workspace, extend with custom code, and deploy your agents anywhere — local, cloud, or edge — with full governance and control.

fix vite issue

Ahmed Essam6735061b8d44
diff --git a/packages/app/src/react/vite.config.ts b/packages/app/src/react/vite.config.ts
index 571f968e..81dd3aa7 100644
--- a/packages/app/src/react/vite.config.ts
+++ b/packages/app/src/react/vite.config.ts
@@ -5,9 +5,9 @@ import { defineConfig } from 'vite';
dotenv.config({ path: '../../.env' });
// https://vite.dev/config/
-let EXPRESS_SERVER_PORT = parseInt(process.env.PORT || '4000');
+const EXPRESS_SERVER_PORT = parseInt(process.env.PORT || '4000');
-const proxyRoutes = ['/api', '/app', '/js', '/css', '/metroui', '/data', '/img', '/assets'];
+const proxyRoutes = ['/api', '/app', '/js', '/css', '/metroui', '/img', '/assets'];
const redirectRoutes = ['/builder', '/logs', '/logto'];
// Helper function to check if request should be proxied