Skip to content

Commit

Permalink
fix: dapp image source allowed domains (#568)
Browse files Browse the repository at this point in the history
Signed-off-by: Urban Vidovič <[email protected]>
  • Loading branch information
pseudobun authored Feb 19, 2024
1 parent 24f8dd4 commit cf0e0c8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/gorgeous-walls-look.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@blockchain-lab-um/dapp': patch
---

Adds allowed image sources/origins/domains on dapp.
8 changes: 7 additions & 1 deletion packages/dapp/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,13 @@ const nextConfig = {
output: process.env.DOCKER_BUILD === 'true' ? 'standalone' : undefined,
// https://nextjs.org/docs/messages/next-image-unconfigured-host
images: {
domains: ['localhost', 'ipfs.io'],
remotePatterns: [
{
protocol: 'https',
hostname: '**',
},
],
domains: ['localhost'],
loader: 'default',
},
optimizeFonts: true,
Expand Down

0 comments on commit cf0e0c8

Please sign in to comment.