6 lines
193 B
TypeScript

export const getFullUrl = (url?: string) => {
const BASE_URL = 'https://2e1b-202-8-116-13.ngrok-free.app';
if (!url) return '';
return url.startsWith('/') ? `${BASE_URL}${url}` : url;
};