This script creates a local server to run Web-exported games made with Godot and opens a new tab on your local browser with your game.
Tested with Godot 4.2.1
Export your game for Web and copy the server.py
file into the root of your export.
run python server.py
on the root folder.
Your game will be accessible at http://localhost:8000