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"); +});