I have a unity webgl project and I pushed the webgl build to my git branch as shown below.
I deployed this branch to my github page as shown below.
The build is working on my local with the help of servez. However, on github pages (and my local without servez) it gives the following error:
Unable to parse Build/vectorunknown builds.framework.js.gz! This can happen if build compression was enabled but web server hosting the content was misconfigured to not serve the file with HTTP Response Header "Content-Encoding: gzip" present. Check browser Console and Devtools Network tab to debug.
How do I deploy to github page with "Content-Encoding: gzip" response header included? How do I make it work? Do I need to make webgl with different options in Unity instead? Kindly help!
I went to Edit > Project Settings > Player > Publishing settings
and disabled the compression. it worked after that. However, the colors look weird after that. i wish there was another better way.