Watch this 3-minute video tutorial on exporting your project as HTML: link. Additionally, be aware of potential cross-origin issues. If you encounter them, refer to this Stack Overflow post for a quick fix: link.
I followed the tutorial and everything and even did the sharedArray buffer thing and my game isn't loading on the itch.io page, not sure what happened. Hopefully I can find a solution,
Thank you for this!!
I also found this video to be helpful:
https://www.youtube.com/watch?v=RiQcnVgBhFE