Customize Kitbook’s SvelteKit Config

If you SvelteKit related settings, such as telling Kitbook to use the default output directory in case you are [using Kitbook by itself], you can pass any custom config options like this:

svelte.config.js
js
const config = {
// ...
}
/** @type {import('@sveltejs/kit').Config} */
const svelteConfigAdjustments = {
kit: {
outDir: '.svelte-kit',
}
}
export default augmentSvelteConfigForKitbook(config, { svelteConfigAdjustments });
Edit page on GitHub
Instrument Panel