Skip to content

Commit 7260e16

Browse files
Merge pull request #224 from Web-Dev-Path/fix/devto-image
Update next.config.js to allow images from any dev.to subdomain
2 parents cbf9db4 + 4ed4fe7 commit 7260e16

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,3 +137,4 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
137137
- Fixed dev.to images not showing due to them changing image host
138138
- Fixed styling issue on nav links
139139
- Fixed contact form message position
140+
- Fixed blog images not loading due to dev.to changing image host (sub)domain

next.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ module.exports = withPWA({
2424
},
2525
{
2626
protocol: 'https',
27-
hostname: 'media.dev.to',
27+
hostname: '*.dev.to',
2828
},
2929
],
3030
},

0 commit comments

Comments
 (0)