-
Select Topic AreaQuestion BodyI have my portfolio website hosted on GitHub Pages. It is built with SvelteKit, SSG rendered, and deployed using gh-pages (npx). Today I made a minor change to the page and tried to deploy it, and all requests returned 404. I had the same problem a few months ago (Feb), but I solved them (it was due to .nojekyll file). Any ideas? Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Turns out that the problem is that in my Now I'm also using the Beta GitHub workflow deploy to Pages which is a lot easier and straightforward than the |
Beta Was this translation helpful? Give feedback.
Turns out that the problem is that in my
svelte.config.js
I hadpaths: { base: dev ? '' : '/my-portfolio', }
because it was needed by GitHub in order to make it work. Apparently now it doesn't need it anymore, so all the 404 were right since it was trying to get non-existing files.
Now I'm also using the Beta GitHub workflow deploy to Pages which is a lot easier and straightforward than the
gh-pages
npm package.