express API Build timed out

I'm trying to put online a small express API demo for my students however the build always times out. From what I can see from my build logs, everything works perfectly and starts up but as soon as its up and running it stays there for 10 minutes after which it times out.

I've put the code publicly available here:
you are starting the server during the build phase, thus the build is trying to run forever.
rename the start script to dev
rename the build script to start
This fixed it, I had been looking so long for what was wrong. Thank you