feat: s3 avatar uploads

This commit is contained in:
Henry
2025-05-06 09:22:25 +01:00
parent 8ae7eeb1fe
commit 65eca3ebbb
13 changed files with 1668 additions and 32 deletions

View File

@@ -1,3 +1,5 @@
import { env } from "~/env";
export const formatToArray = (
value: string | string[] | undefined,
): string[] => {
@@ -42,3 +44,7 @@ export const formatMemberDisplayName = (
return localPart.replace(/[_-]/g, ".");
};
export const getAvatarUrl = (key: string) => {
return `${env.NEXT_PUBLIC_STORAGE_URL}/${env.NEXT_PUBLIC_AVATAR_BUCKET_NAME}/${key}`;
};