Github Pages CSS, JS, etc. generated by next.js is 404ing

My website (, cname’d to, source code) is giving a 404 when trying to fetch CSS. The site was statically generated using next.js.

Things I have tried:

  1. I have tried a hard refresh.
  2. I have cleared my cookies.
  3. I have looked at the Network tab in Firefox and compared it to my repo to ensure the CSS exists in the correct place. It does not.
  4. I have served it locally using Python’s SimpleHTTPServer. The CSS works there.
1 Like

Because I’m not allowed to put more than 2 links in a post, here’s an example of something that’s not working: should correspond to this file but the first link 404s.

1 Like

I think I found the solution in this post: adding a .nojekyll file to the root of my directory.

EDIT: It did not work.
EDIT 2: It did work, I just had to push a random change to force a rebuild of the site.