switch from minio to seaweed S3 storage: configs and buckets (dev vs. prod, refactoring magic strings)
This commit is contained in:
@@ -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 };
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user