You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using adapter-static with a base path to build a project the pages won't be built (at least don't appear in build).
There is NO error message on build!
Affected versions: 1.0.0-next.231 and 232, <=230 aren't affected
When you share a reproduction, please share a broken version! It took me forever to figure out why I couldn't reproduce the issue and that you had pinned an old version of SvelteKit in your package.json
benmccann
changed the title
Builds with adapter static are broken when using a base path
prerendering broken when using a base path
Jan 20, 2022
I have [probably] the same issue, starting v 231. However, I haven't applied any special settings for kit.paths nor the adapter. Everything is set to default.
The only affected file is favicon.ico.
HTTP/1.1 404 Not Found
Content-Length: 9
But the very same file renamed to favicon2.ico works just fine:
Describe the bug
When using adapter-static with a base path to build a project the pages won't be built (at least don't appear in build).
There is NO error message on build!
Affected versions: 1.0.0-next.231 and 232, <=230 aren't affected
Reproduction
Link to repository:
https://github.com/Tahlaria/svelte-build-bug
Branch main: works - version 230 referenced in package.json
Branch broken: doesn't work - version next referenced in package.json (232 right now)
npm i && npm run build
ls build
How to do yourself:
Checkout a skeleton project:
npm init svelte@next app
cd app
Import adapter-static:
npm i -D @sveltejs/adapter-static@next
Adapt svelte.config.js according to adapter instructions and use a base path:
svelte.config.js:
Build:
npm i
npm build
Logs
System Info
Severity
serious, but I can work around it
Additional Information
Not a problem if it's known that <=230 isn't affected, otherwise it's breaking build functionality with static adapter (other adapters untested!).
The text was updated successfully, but these errors were encountered: