mirror of
https://git.meshkee.com/Meshkee/backend.git
synced 2026-08-12 06:40:58 +04:30
25 lines
626 B
TypeScript
25 lines
626 B
TypeScript
/**
|
|
* Parspack S3 object key layout (path-style public URLs):
|
|
*
|
|
* meshkee/
|
|
* businesses/
|
|
* {businessId}/
|
|
* media/{uuid}{ext} — media library uploads
|
|
* brand/favicon-{uuid}.png — derived favicons
|
|
*/
|
|
const ROOT = 'meshkee';
|
|
|
|
export function businessMediaKey(
|
|
businessId: bigint | string | number,
|
|
fileName: string,
|
|
): string {
|
|
return `${ROOT}/businesses/${businessId}/media/${fileName}`;
|
|
}
|
|
|
|
export function businessBrandFaviconKey(
|
|
businessId: bigint | string | number,
|
|
fileName: string,
|
|
): string {
|
|
return `${ROOT}/businesses/${businessId}/brand/${fileName}`;
|
|
}
|