Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Bjorn Lu <bjornlu.dev@gmail.com>
  • Loading branch information
ematipico and bluwy authored Oct 23, 2024
1 parent 16d6883 commit 66782c4
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/vercel/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -443,13 +443,9 @@ export default function vercelAdapter({
...imagesConfig,
domains: [...imagesConfig.domains, ..._config.image.domains],
remotePatterns: [
// ...(imagesConfig.remotePatterns ?? []),
// ..._config.image.remotePatterns,
...(imagesConfig.remotePatterns ?? []),
],
};
if (imagesConfig.remotePatterns) {
images.remotePatterns?.push(...imagesConfig.remotePatterns);
}
const remotePatterns = _config.image.remotePatterns;
if (isAcceptedPattern(remotePatterns)) {
images.remotePatterns?.push(remotePatterns);
Expand Down

0 comments on commit 66782c4

Please sign in to comment.