Issue deploying to Github Pages

Copying dist folder used to work a couple versions back, but now it doesn’t.

If i leave index.html in .gz zip, then github page shows 404 error.

If I unzip it into a regular index.html, the tab loads but the screen remains white
image.png

Original Post on Discord

by user 263967078346653697

What does the console say?

You can not just unzip the index .gz (for example js and css files in assets are also gzipped)

if your github page is not setup/doesnt support serving gzipped files you need to build without gzip enabled (see Build Window for example)
image.png

console is just 404 error

by user 263967078346653697

cool lemme try

by user 263967078346653697

If you ever run into stuff like that one way to figure out what it tries to load (and what is not loading) is using the browsers networking tab. Stuff that is requests and fails is rendered in red in the list containing a bunch of info about who tried to make the request etc.

To use it open the Network tab and then refresh the site to see what is being loaded and how long it takes etc

ye so its index

by user 263967078346653697

ill try the uncompressed one

by user 263967078346653697

by user 263967078346653697

same with uncompressed

by user 263967078346653697

oh i see

by user 263967078346653697

image.png

by user 263967078346653697

these are still compressed

by user 263967078346653697

and github doesnt like that

by user 263967078346653697

its in dist->assets

by user 263967078346653697

okay i see

by user 263967078346653697

if i click build+deploy, it sets back to compressed

by user 263967078346653697

i had to click just build

by user 263967078346653697

without deploy

by user 263967078346653697

The Build and Deploy button on the glitch component enforces gzip compression because glitch does support it by default