added commit hash to footer

This commit is contained in:
2026-01-29 17:20:03 +01:00
parent cbc00e1cd7
commit b1649f5911
2 changed files with 11 additions and 0 deletions

View File

@@ -1,6 +1,7 @@
import adapter from '@sveltejs/adapter-node';
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
import { mdsvex } from 'mdsvex';
import * as child_process from 'node:child_process';
const missingPaths = [
// "/games/swordsnstuff",
@@ -24,6 +25,9 @@ const config = {
handleMissingId: 'warn',
handleUnseenRoutes: 'warn',
},
version: {
name: child_process.execSync('git rev-parse HEAD').toString().trim()
},
},
extensions: ['.svelte', '.md'],
preprocess: [