Skip to content

Commit 6b1da3f

Browse files
committed
[fix] image device size cap at 1504px
Overrides default decideSizes for images, capping largest device size at 1504px (global website max width). Fixes image sizes which were coming in significantly larger than in previous Gatsby repo.
1 parent 2107fe3 commit 6b1da3f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

next.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ module.exports = (phase, { defaultConfig }) => {
3434
return config
3535
},
3636
i18n,
37+
images: {
38+
deviceSizes: [640, 750, 828, 1080, 1200, 1504],
39+
},
3740
}
3841

3942
if (phase !== PHASE_DEVELOPMENT_SERVER) {

0 commit comments

Comments
 (0)