Skip to content

Commit

Permalink
SvelteKit: Document relative paths configuration (#640)
Browse files Browse the repository at this point in the history
Tell SvelteKit that it should not automatically assume that it may be running in a sub-directory.
  • Loading branch information
treo committed Feb 17, 2024
1 parent 3b4dbb5 commit 4e66971
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/modules/ROOT/pages/web-frameworks.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,11 @@ const config = {
kit: {
adapter: adapter({
fallback: 'index.html'
})
}),
// Mark path non-relative, otherwise SvelteKit assumes it works in a sub-directory
paths: {
relative: false
}
}
};
Expand Down

0 comments on commit 4e66971

Please sign in to comment.