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

@@ -7,6 +7,10 @@ import config from '$lib/config';
/** export const client = new Minio.Client(config.minio); */
export const client = new Client(config.minio);
export const BUCKET = 'tatort';
const isProd = process.env.NODE_ENV == 'production';
const BUCKET = isProd ? 'tatort' : 'tatort-dev';
export { BUCKET };
export const TOKENFILENAME = '__perm__';
export const CONFIGFILENAME = 'config.json';