From 0b7d2504b14c4b150228e0fb2d41e9fb9a63f80e Mon Sep 17 00:00:00 2001 From: Alexander Sucala <53278775+alexandersucala@users.noreply.github.com> Date: Fri, 27 Mar 2026 15:42:52 -0700 Subject: [PATCH] Update index.js --- apps/api/index.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/apps/api/index.js b/apps/api/index.js index 293de2cc4337ed..9206166dc73383 100644 --- a/apps/api/index.js +++ b/apps/api/index.js @@ -10,9 +10,13 @@ const apiProxyV2 = createProxyMiddleware({ target: "http://localhost:3004", }); +// TODO: this needs auth middleware before it hits prod +// also need to handle websocket upgrades at some point const app = connect(); -app.use("/", apiProxyV1); app.use("/v2", apiProxyV2); +app.use("/", apiProxyV1); // catch-all has to go last or v2 never matches -http.createServer(app).listen(3002); +http.createServer(app).listen(3002, () => { + console.log("proxy listening on 3002"); +});