initial commit

This commit is contained in:
Joakim Repomaa
2026-02-17 02:15:25 +02:00
commit 72a636d175
55 changed files with 6171 additions and 0 deletions

34
svelte.config.js Normal file
View File

@@ -0,0 +1,34 @@
import adapter from '@sveltejs/adapter-static';
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';
/** @type {import('@sveltejs/kit').Config} */
const config = {
preprocess: vitePreprocess(),
kit: {
adapter: adapter({
pages: 'build',
assets: 'build',
precompress: false,
strict: false,
}),
prerender: {
entries: ['/', '/print'],
handleHttpError: ({ path, message }) => {
// Ignore 404s for cv.pdf (generated after build) and static files
if (path === '/cv.pdf' || path.startsWith('/admin/')) {
return;
}
console.warn(`Prerender error for ${path}: ${message}`);
},
handleMissingId: () => {
// Ignore missing IDs for hash links
return;
},
},
alias: {
$lib: './src/lib',
},
},
};
export default config;