To create a test localhost server to serve Godot Engine 4's HTML5 export!
It's because Godot 4 requires SharedArrayBuffer, which requires some headers. Therefore, I created this so I can just run this and test it.
deno install -Af https://raw.githubusercontent.com/meliyn/godot-web-test-server/main/godot-web-test-server.ts
Usage: godot-web-test-server serve [options]
Options:
-d, --baseDir <dir> Base directory (default: Deno.cwd())
-i, --index <name> The root HTML file name (default: "index.html")
-l, --log Enable logging (default: false)
-p, --port <port> Port (default: "8080")
-h, --help display help for command
Serve ./builds/1/
's My Game.html
in 0.0.0.0:3000
godot-web-test-server serve -d ./builds/1/ -i "My Game.html" -p 3000