| 1 | /** No WebP: avatars are drawn into the OG images and `next/og` cannot decode it. */ |
| 2 | export const AVATAR_CONTENT_TYPES = |
| 3 | 'image/png': 'png', |
| 4 | 'image/jpeg': 'jpg', |
| 5 | } as const; |
| 6 | |
| 7 | export type AvatarContentType |
| 8 | |
| 9 | /** Upload ceiling. The client resizes to a 256px square before sending, so this is generous - it only exists so an unresized original cannot fill the bucket. */ |
| 10 | export const AVATAR_MAX_BYTES = |
| 11 | |
| 12 | export const AVATAR_PREFIX = |
| 13 | |
| 14 | /** Object names this service generates: `<nanoid>.<extension>`. */ |
| 15 | export const AVATAR_NAME_PATTERN = |