mirror of
https://github.com/strapi/strapi.git
synced 2025-11-02 10:55:37 +00:00
Update utils.ts
This commit is contained in:
parent
7b895b35ac
commit
aa7f6368d0
@ -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).
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user