We fell in the same trap and didn't realize we couldn't export a web build with godot 4 until it was too late! Something to be aware of next time around.