Skip to content

Commit

Permalink
fix: withHeadstartWPConfig wrapper removing custom images remotePatt… (
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasio authored Sep 2, 2024
1 parent c1f3113 commit 9bf2202
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/strong-scissors-shout.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@headstartwp/next": patch
---

Fix: #861 wrapper removing custom images remotePatterns
2 changes: 1 addition & 1 deletion packages/next/src/config/withHeadstartWPConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ export function withHeadstartWPConfig(

if (useImageRemotePatterns) {
imageConfig.remotePatterns =
nextConfig.remotePatterns ??
nextConfig?.images?.remotePatterns ??
imageDomains.map((each) => {
return {
hostname: each,
Expand Down

0 comments on commit 9bf2202

Please sign in to comment.