Files
pages/svelte.config.js

42 lines
873 B
JavaScript
Raw Normal View History

import adapter from '@sveltejs/adapter-node';
2025-03-31 19:03:23 +02:00
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
2025-12-04 20:10:23 +00:00
import { mdsvex } from 'mdsvex';
2026-01-29 17:20:03 +01:00
import * as child_process from 'node:child_process';
2025-03-31 19:03:23 +02:00
2025-07-14 13:14:40 +02:00
const missingPaths = [
// "/games/swordsnstuff",
// "/games/magician",
// "/projects/tads/tads1",
// "/projects/tads/tads2"
2025-07-14 13:14:40 +02:00
]
2025-03-31 23:07:29 +02:00
/** @type {import('@sveltejs/kit').Config} */
2025-03-31 19:03:23 +02:00
const config = {
// preprocess: vitePreprocess(),
2025-03-31 23:07:29 +02:00
kit: {
adapter: adapter({
pages: 'build',
assets: 'build',
fallback: undefined,
preprocess: false,
strict: true,
}),
2025-04-04 20:28:38 +02:00
prerender: {
2026-01-10 19:51:00 +01:00
handleMissingId: 'warn',
handleUnseenRoutes: 'warn',
2025-04-04 20:28:38 +02:00
},
2026-01-29 17:20:03 +01:00
version: {
name: child_process.execSync('git rev-parse HEAD').toString().trim()
},
2025-03-31 23:07:29 +02:00
},
2025-12-04 20:10:23 +00:00
extensions: ['.svelte', '.md'],
preprocess: [
vitePreprocess(),
mdsvex({
extensions: ['.md'],
2025-12-04 20:10:23 +00:00
}),
]
2025-03-31 19:03:23 +02:00
};
export default config;