switch from minio to seaweed S3 storage: configs and buckets (dev vs. prod, refactoring magic strings)

This commit is contained in:
2025-09-04 10:55:45 +02:00
parent 3d22aab5b3
commit b9c03831cb
7 changed files with 24 additions and 21 deletions

View File

@@ -1,8 +1,8 @@
import { client } from '$lib/minio';
import { BUCKET, client } from '$lib/minio';
import type { PageServerLoad } from './$types';
export const load: PageServerLoad = async ({ params }) => {
const { vorgang, tatort } = params;
const url = await client.presignedUrl('GET', 'tatort', `${vorgang}/${tatort}`);
const url = await client.presignedUrl('GET', BUCKET, `${vorgang}/${tatort}`);
return { url };
}
};