Skip to content

Commit

Permalink
address comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ematipico committed Oct 23, 2024
1 parent f4872c9 commit 24e00a3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/vercel/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -445,8 +445,10 @@ export default function vercelAdapter({
remotePatterns: [...(imagesConfig.remotePatterns ?? [])],
};
const remotePatterns = _config.image.remotePatterns;
if (isAcceptedPattern(remotePatterns)) {
images.remotePatterns?.push(remotePatterns);
for (const pattern of remotePatterns) {
if (isAcceptedPattern(pattern)) {
images.remotePatterns?.push(pattern);
}
}
} else {
images = getDefaultImageConfig(_config.image);
Expand Down

0 comments on commit 24e00a3

Please sign in to comment.