1
0
Fork 0
mirror of https://github.com/mat-1/matdoesdev.git synced 2025-08-02 14:46:04 +00:00
matdoesdev/svelte.config.js
2023-12-11 23:48:19 -06:00

48 lines
1 KiB
JavaScript

import staticAdapter from '@sveltejs/adapter-static'
import preprocess from 'svelte-preprocess'
import { mdsvex } from 'mdsvex'
/** @type {import('@sveltejs/kit').Config} */
const config = {
// Consult https://github.com/sveltejs/svelte-preprocess
// for more information about preprocessors
preprocess: [
preprocess(),
mdsvex({
extensions: ['.svx'],
layout: './src/lib/PostLayout.svelte',
}),
],
extensions: ['.svelte', '.svx'],
kit: {
adapter: staticAdapter({
precompress: true,
fallback: 'fallback.html',
}),
prerender: {
entries: [
'*',
'/404',
'/451',
'/retro',
'/minecraft-scanning/minecraft-server-background.png',
// redirect /blog/* to /*
'/blog/matdoes-dev-markdown',
'/blog/minecraft-server-warner',
'/blog/minecraft-scanning',
'/blog/the-story-of-reportscammers',
'/blog/uncovering-the-discord-twitch-bots',
'/blog/what-are-domain-hacks',
'/blog/who-is-mat',
],
handleHttpError: 'warn',
},
paths: {
relative: false,
},
},
}
export default config