mirror of
https://github.com/documenso/documenso.git
synced 2025-11-12 15:53:02 +10:00
feat: migrate nextjs to rr7
This commit is contained in:
9
packages/lib/utils/avatars.ts
Normal file
9
packages/lib/utils/avatars.ts
Normal file
@ -0,0 +1,9 @@
|
||||
import { NEXT_PUBLIC_WEBAPP_URL } from '../constants/app';
|
||||
|
||||
export const formatAvatarUrl = (imageId?: string | null) => {
|
||||
if (!imageId) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
return `${NEXT_PUBLIC_WEBAPP_URL()}/api/avatar/${imageId}`;
|
||||
};
|
||||
Reference in New Issue
Block a user