Simple barebone ASP.Net Core Kestrel static file server.
StaticWebpagesServer.exe <Content Folder>
: Pass as first argument the content root (folder to serve).
Example:
./StaticWebpagesServer.exe ../MyGodotProject/publish/Web
(Then you need to navigate to the corresponding HTML file)
To server on the internet:
./StaticWebpagesServer.exe ../MyGodotProject/publish/Web --urls http://0.0.0.0:80
See issue: godotengine/godot-proposals#6616 Indeed it looks like it's not an issue on the Godot size.
For anyone who just wish to test the web build locally, use the build in Release page for Godot (requires .Net 8 ASP.Net core runtime)
The key elements for server configuration are shown in those two commits:
- https://github.com/chaojian-zhang/StaticWebpagesServer/commit/db7e1a32f72874c21d5f6a490a40d37a3ecf1c84
- https://github.com/chaojian-zhang/StaticWebpagesServer/commit/623879f7167bbbcbd8f6d3f89f26f920a25c92aa
Reddit discussion: https://www.reddit.com/r/godot/comments/13nfnaw/cant_run_the_web_export_of_my_game_on_godot_4/
- v1.0.0: Initial release.
- v1.0.1: Support typical asp.net core arguments.