Files
doloro-site-v6/svelte.config.ts
T
2026-04-20 17:46:53 +01:00

43 lines
881 B
TypeScript

import adapter from "@sveltejs/adapter-static";
import { mdsvex } from "mdsvex";
/** @type {import('@sveltejs/kit').Config} */
const config = {
extensions: [".svelte", ".md"],
preprocess: [
mdsvex({
// The default mdsvex extension is .svx; this overrides that.
extensions: [".md"],
layout: {
_: 'src/lib/Layout.svelte',
},
// Adds IDs to headings, and anchor links to those IDs. Note: must stay in this order to work.
rehypePlugins: [
// rehypeSlug,
// rehypeAutolinkHeadings,
],
}),
],
kit: {
alias: {
'src': './src/',
},
files: {
assets: "./static",
},
adapter: adapter({
// default options are shown. On some platforms
// these options are set automatically — see below
pages: 'build',
assets: 'build',
fallback: undefined,
precompress: false,
strict: true,
}),
},
};
export default config;