2024-06-16 13:21:26 +00:00
|
|
|
import adapter from '@sveltejs/adapter-static';
|
2024-06-13 09:32:17 +00:00
|
|
|
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
|
2024-06-29 17:58:00 +00:00
|
|
|
import { mdsvex } from 'mdsvex';
|
|
|
|
import { fileURLToPath } from 'node:url';
|
|
|
|
import { dirname, join } from 'node:path';
|
2024-06-13 09:32:17 +00:00
|
|
|
|
|
|
|
/** @type {import('@sveltejs/kit').Config} */
|
|
|
|
const config = {
|
|
|
|
// Consult https://kit.svelte.dev/docs/integrations#preprocessors
|
|
|
|
// for more information about preprocessors
|
2024-06-29 17:58:00 +00:00
|
|
|
extensions: [".svelte", ".md"],
|
|
|
|
preprocess: [
|
|
|
|
vitePreprocess(),
|
|
|
|
mdsvex({
|
|
|
|
extensions: ['.md'],
|
|
|
|
layout: join(
|
|
|
|
dirname(fileURLToPath(import.meta.url)),
|
|
|
|
'/src/components/misc/ChangelogEntryWrapper.svelte'
|
|
|
|
)
|
|
|
|
})
|
|
|
|
],
|
2024-06-13 09:32:17 +00:00
|
|
|
kit: {
|
2024-06-24 14:23:55 +00:00
|
|
|
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
|
|
|
|
}),
|
2024-07-07 16:10:12 +00:00
|
|
|
paths: {
|
|
|
|
relative: false
|
|
|
|
},
|
2024-06-24 14:23:55 +00:00
|
|
|
alias: {
|
2024-07-02 18:16:03 +00:00
|
|
|
$components: 'src/components',
|
|
|
|
$i18n: 'i18n',
|
2024-06-24 14:23:55 +00:00
|
|
|
}
|
|
|
|
}
|
2024-06-13 09:32:17 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
export default config;
|