Replies: 1 comment
|
The error means the prerenderer requested a path that doesn't start with your configured The reason it only shows up in CI is most likely the Two more things worth knowing. On the workaround, I'd remove it. Returning early from |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hi!
I'm attempting to deploy a website built with SvelteKit to GitHub Pages.
The whole site is SSG only and I have no issue with
pnpm dev,pnpm buildorpnpm servelocally.However, it seems that that the GitHub Actions CI keeps on throwing the same error:
Error: 404 / does not begin with 'base':With this job:
What is surprising is that I cannot reproduce the issue, even when using the same environment variables, and it makes me wondering if that's something internal to SvelteKit that is throwing this.
I am clueless as what I'm supposed to do, as all my paths are starting with this prefix (I also noticed the docs recommending to use
resolve(...)but this fails too).I attempted:
{base}andresolve(...)without success+error.svelteas I was wondering if the default error page was the issue (it wasn't)My
svelte.config.jsis the following:I'm a completely out of idea, does anyone has a new one I havn't tried yet?
If that's of any help, the repo is the following: https://github.com/pBouillon/locutionis
EDIT: I've silenced the error with:
but it doesn't seems like the good way of addressing the issue
All reactions