managarten/services/mana-media/apps/api/src/constants.ts
Till JS 73181ab91d refactor(mana-media): migrate from NestJS to Hono/Bun
Replace NestJS framework with Hono + Bun, eliminating the last
NestJS service from the stack. All business logic preserved:
- CAS upload with SHA-256 dedup
- BullMQ image processing (Sharp thumbnails/variants)
- Matrix MXC URL import
- EXIF extraction
- File streaming/transforms
- Prometheus metrics

23 NestJS files → 12 Hono files. Zero NestJS in the monorepo.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-28 18:12:42 +01:00

17 lines
417 B
TypeScript

export const PROCESS_QUEUE = 'media-process';
export const IMAGE_VARIANTS = {
thumbnail: { width: 200, height: 200, fit: 'cover' as const },
medium: { width: 800, height: 800, fit: 'inside' as const },
large: { width: 1920, height: 1920, fit: 'inside' as const },
};
export const SUPPORTED_IMAGE_TYPES = [
'image/jpeg',
'image/png',
'image/webp',
'image/gif',
'image/avif',
'image/heic',
'image/heif',
];