diff --git a/src/@utils/url/index.ts b/src/@utils/url/index.ts index 8722439ffe..b8d6d3cee4 100644 --- a/src/@utils/url/index.ts +++ b/src/@utils/url/index.ts @@ -10,6 +10,10 @@ export function sanitizeUrl(url: string) { export const isGoogleUrl = (url: string): boolean => { if (!url || !isUrl(url)) return - const googleUrl = new URL(url) - return googleUrl.hostname.endsWith('google.com') + const urlString = new URL(url) + const googleUrl = urlString.hostname.endsWith('google.com') + const isGoogleStorage = urlString.hostname.endsWith( + 'storage.cloud.google.com' + ) + return isGoogleStorage ? false : googleUrl }