chore: Remove optimize imports to allow vite upgrade (#5691)
This commit is contained in:
@@ -26,8 +26,8 @@ function isAttachment(token: Token) {
|
||||
|
||||
return (
|
||||
// internal
|
||||
href?.startsWith("/api/attachments.redirect") ||
|
||||
// external (public share are pre-signed and this is a reasonable way of detecting them)
|
||||
href?.startsWith("/api/attachments.redirect") ||
|
||||
((href?.startsWith(env.AWS_S3_UPLOAD_BUCKET_URL) ||
|
||||
href?.startsWith(env.AWS_S3_ACCELERATE_URL)) &&
|
||||
href?.includes("X-Amz-Signature"))
|
||||
|
||||
Reference in New Issue
Block a user