mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-15 12:41:09 +02:00
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>
17 lines
417 B
TypeScript
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',
|
|
];
|