-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathnext.config.js
More file actions
29 lines (27 loc) · 857 Bytes
/
next.config.js
File metadata and controls
29 lines (27 loc) · 857 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
const withBundleAnalyzer = require('@next/bundle-analyzer')({
enabled: process.env.ANALYZE === 'true',
});
/** @type {import('next').NextConfig} */
const config = {
reactStrictMode: true,
pageExtensions: ['js', 'ts', 'jsx', 'tsx', 'md', 'mdx'],
compress: true,
images: {
remotePatterns: [
{hostname: 'i.imgur.com'},
{hostname: 'cdn.grigora.co'},
{hostname: 'media2.giphy.com'},
{hostname: 'images.ctfassets.net'},
{hostname: 'dev-to-uploads.s3.amazonaws.com'},
{hostname: 'lh3.googleusercontent.com'},
{hostname: 'openseauserdata.com'},
{hostname: 's1.aitable.ai'},
{hostname: 'i.seadn.io'},
],
imageSizes: [16, 32, 48, 64],
deviceSizes: [
96, 128, 256, 384, 512, 640, 750, 828, 1080, 1200, 1920, 2048, 3840,
],
},
};
module.exports = withBundleAnalyzer(config);