GitHub Pages do not publish some files from gh-pages branch #55377
-
Select Topic AreaBug BodyHere's my repo, and here's my website. As you can see, the CSS isn't loading. You can open the console (ctrl+shift+i) and see the 404 errors while fetching the CSS. However, if you go to the I deploy using the And it's not just that one CSS files, many other JS and SVG files are also not loaded, returning 404 when you go to that URL, but they are right there in the gh-pages branch, and there's nothing wrong with the URL. Because even if there is something wrong in the URL, it shouldn't load in those "sometimes" where I spammed the refresh button for 10 minutes, but they do anyways. So I'm guessing this is some server side error from GitHub Pages. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
It's because of the leading underscore in
Any of the following should fix your problem:
|
Beta Was this translation helpful? Give feedback.
It's because of the leading underscore in
_next
. The default Pages build uses Jekyll, and to quote the Jekyll documentation on site structure:Any of the following should fix your problem:
_next
directory so it doesn't start with one of the excluded characters._next
..nojekyll
file to the r…