kit-docs icon indicating copy to clipboard operation
kit-docs copied to clipboard

deploy in githubpages

Open gzimbron opened this issue 1 year ago • 0 comments

Is there a way to set base Path ? I've added base path to svelte.config, but sidebar menu links to /doc/welcomeinstead of /mybase/doc/welcome

import adapter from '@sveltejs/adapter-static';

/** @type {import('@sveltejs/kit').Config} */
const config = {
	extensions: ['.svelte', '.md'],

	kit: {
		adapter: adapter(),

		paths: {
			base: process.argv.includes('dev') ? '' : process.env.BASE_PATH
		},
		prerender: {
			entries: ['*'],
			handleMissingId: 'warn'
		}
	}
};

export default config;

gzimbron avatar Nov 04 '24 08:11 gzimbron