Skip to content

Commit 32b00b3

Browse files
authored
Merge pull request #261 from ethereum/image-sizes
Fix image device size cap at 1504px
2 parents 2107fe3 + c3bfbc7 commit 32b00b3

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

next.config.js

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ const LIMIT_CPUS = Number(process.env.LIMIT_CPUS || 2)
66

77
const experimental = LIMIT_CPUS
88
? {
9-
// This option could be enabled in the future when flagged as stable, to speed up builds
10-
// (see https://nextjs.org/docs/pages/building-your-application/configuring/mdx#using-the-rust-based-mdx-compiler-experimental)
11-
// mdxRs: true,
12-
13-
// Reduce the number of cpus and disable parallel threads in prod envs to consume less memory
14-
workerThreads: false,
15-
cpus: LIMIT_CPUS,
16-
}
9+
// This option could be enabled in the future when flagged as stable, to speed up builds
10+
// (see https://nextjs.org/docs/pages/building-your-application/configuring/mdx#using-the-rust-based-mdx-compiler-experimental)
11+
// mdxRs: true,
12+
13+
// Reduce the number of cpus and disable parallel threads in prod envs to consume less memory
14+
workerThreads: false,
15+
cpus: LIMIT_CPUS,
16+
}
1717
: {}
1818

1919
/** @type {import('next').NextConfig} */
@@ -34,6 +34,9 @@ module.exports = (phase, { defaultConfig }) => {
3434
return config
3535
},
3636
i18n,
37+
images: {
38+
deviceSizes: [640, 750, 828, 1080, 1200, 1504, 1920],
39+
},
3740
}
3841

3942
if (phase !== PHASE_DEVELOPMENT_SERVER) {

0 commit comments

Comments
 (0)