42 lines
875 B
JavaScript
42 lines
875 B
JavaScript
import adapter from '@sveltejs/adapter-static';
|
|
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
|
|
import { mdsvex } from 'mdsvex';
|
|
import * as child_process from 'node:child_process';
|
|
|
|
const missingPaths = [
|
|
// "/games/swordsnstuff",
|
|
// "/games/magician",
|
|
// "/projects/tads/tads1",
|
|
// "/projects/tads/tads2"
|
|
]
|
|
|
|
/** @type {import('@sveltejs/kit').Config} */
|
|
const config = {
|
|
// preprocess: vitePreprocess(),
|
|
kit: {
|
|
adapter: adapter({
|
|
pages: 'build',
|
|
assets: 'build',
|
|
fallback: undefined,
|
|
preprocess: false,
|
|
strict: true,
|
|
}),
|
|
prerender: {
|
|
handleMissingId: 'warn',
|
|
handleUnseenRoutes: 'warn',
|
|
},
|
|
version: {
|
|
name: child_process.execSync('git rev-parse HEAD').toString().trim()
|
|
},
|
|
},
|
|
extensions: ['.svelte', '.md'],
|
|
preprocess: [
|
|
vitePreprocess(),
|
|
mdsvex({
|
|
extensions: ['.md'],
|
|
}),
|
|
]
|
|
};
|
|
|
|
export default config;
|