working on the frontend, adding torrent page, working on show directory, working on the api

This commit is contained in:
maxDorninger
2025-05-11 10:59:38 +02:00
parent 180771882d
commit ef7b020043
164 changed files with 5389 additions and 1594 deletions

12
web/src/hooks.server.ts Normal file
View File

@@ -0,0 +1,12 @@
import {createImageOptimizer} from 'sveltekit-image-optimize';
import type {Handle} from '@sveltejs/kit';
import {createFileSystemCache} from 'sveltekit-image-optimize/cache-adapters';
const cache = createFileSystemCache('./cache');
const imageHandler = createImageOptimizer({
cache: cache,
fallbackFormat: 'avif',
quality: 20
});
export const handle: Handle = imageHandler;