Update utils.ts

This commit is contained in:
Marc 2023-06-08 11:02:12 +02:00 committed by GitHub
parent 7b895b35ac
commit aa7f6368d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,7 +5,7 @@ interface BucketInfo {
err?: string;
}
export function isUrlFromBucket(fileUrl: string, bucketName: string, bucketBaseUrl = '') {
export function isUrlFromBucket(fileUrl: string, bucketName: string, bucketBaseUrl = ''): boolean {
const url = new URL(fileUrl);
// Check if the file URL is using a base URL (e.g. a CDN).