Thanks for your help! What would be the best way to be able to run the same code either on my own machine or through itch.io, and have it work either way (if there is one)?
This is what I use to turn a folder on my machine into a localhost:3000 site: https://www.npmjs.com/package/http-server