Skip to content

GitHub Pages - CSS and JS 404 - SvelteKit #52062

Answered by Penca53
Penca53 asked this question in Pages
Discussion options

You must be logged in to vote

Turns out that the problem is that in my svelte.config.js I had
paths: { 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.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Fasteroid
Comment options

@Penca53
Comment options

@phorjax
Comment options

Answer selected by Penca53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3 participants