Skip to content

Commit

Permalink
Add wildcard to remotePatterns host for images (#10)
Browse files Browse the repository at this point in the history
* Add wildcard to remotePatterns host for images

* Add priority attribute to header image to priorize image load

* 3.0.2
  • Loading branch information
itbruno authored May 17, 2024
1 parent def8f99 commit 4892585
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const nextConfig = {
remotePatterns: [
{
protocol: 'https',
hostname: 'avatars3.githubusercontent.com'
hostname: '*' // Add image hostname to keep secure
}
]
}
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "linksforall",
"version": "3.0.1",
"version": "3.0.2",
"author": "Bruno Rodrigues",
"repository": "itbruno/linksforall",
"license": "MIT",
Expand Down
1 change: 1 addition & 0 deletions src/themes/alpha/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ function Header({ fullname, image, role, socialLinks }: UserProps) {
alt={fullname}
width={90}
height={90}
priority
/>
)}

Expand Down
1 change: 1 addition & 0 deletions src/themes/dracula/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ function Header({ fullname, image, role, socialLinks }: UserProps) {
alt={fullname}
width={90}
height={90}
priority
/>
)}

Expand Down

0 comments on commit 4892585

Please sign in to comment.