Running multiple backend servers in one project

Project editor URL: Glitch :・゚✧

I’ve subscribed to the paid plan but always felt 5 projects are not enough. Most of the time I need “always active” and individual project doesn’t consume much CPU/RAM. So I started testing running multiple node.js backend servers in one project, and use vite proxy to forward different paths (e.g., /api1, /api2, …) to different ports (e.g., 40000, 40001, …). It’s a bit tricky if you start using websocket and so on - so the example already includes a server with a simple GET interface and a server with (indeed, there is free lunch :sandwich:). Please remix and enjoy :barber: :dna:


This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.