(maybeUrl: string | URL | undefined)
| 281 | * `<VERCEL_URL || localhost>/api/uploadthing` |
| 282 | */ |
| 283 | export const resolveMaybeUrlArg = (maybeUrl: string | URL | undefined): URL => { |
| 284 | return maybeUrl instanceof URL |
| 285 | ? maybeUrl |
| 286 | : Micro.runSync(getFullApiUrl(maybeUrl)); |
| 287 | }; |
| 288 | |
| 289 | export function parseTimeToSeconds(time: Time) { |
| 290 | if (typeof time === "number") return time; |
no test coverage detected