Skip to content

Fully autonomous AI Agents system capable of performing complex penetration testing tasks

chore(frontend): let `vite preview` reach the API

Sergey Kozyrenko9952f7d6b0d3
diff --git a/frontend/vite.config.ts b/frontend/vite.config.ts
index 2a57e5cf..45458b3d 100644
--- a/frontend/vite.config.ts
+++ b/frontend/vite.config.ts
@@ -138,6 +138,9 @@ export default defineConfig(({ mode }) => {
'@': path.resolve(__dirname, './src'),
},
},
+ // `vite preview` serves the production build, which is the only place chunking exists —
+ // but it has no proxy of its own, so without this the built app cannot reach the API.
+ preview: { ...serverConfig, port: vitePort + 100 },
server: serverConfig,
};
});