-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnext.config.mjs
More file actions
35 lines (32 loc) · 1.26 KB
/
next.config.mjs
File metadata and controls
35 lines (32 loc) · 1.26 KB
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
30
31
32
33
34
35
// next.config.js
import bundleAnalyzer from '@next/bundle-analyzer'
const withBundleAnalyzer = bundleAnalyzer({
enabled: process.env.ANALYZE === 'true',
})
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
poweredByHeader: false,
compiler: { removeConsole: process.env.NODE_ENV === 'production' },
eslint: { ignoreDuringBuilds: true },
images: {
remotePatterns: [
{ protocol: 'https', hostname: 'thepodcastconsultant.com' },
{ protocol: 'https', hostname: 'www.thepodcastconsultant.com' },
{ protocol: 'https', hostname: '*.flywheelsites.com' },
{ protocol: 'http', hostname: '*.flywheelsites.com' },
{ protocol: 'https', hostname: 'draft.dev' },
{ protocol: 'https', hostname: 'i.imgur.com' },
{ protocol: 'https', hostname: 'imgur.com' },
{ protocol: 'https', hostname: '*.wp.com' },
{ protocol: 'https', hostname: 'secure.gravatar.com' },
],
formats: ['image/webp', 'image/avif'],
minimumCacheTTL: 86400,
// Reasonable defaults; keep wide for hero/LCP candidates
deviceSizes: [640, 750, 828, 1080, 1200, 1920, 2048, 3840],
imageSizes: [16, 32, 48, 64, 96, 128, 256, 384, 512, 768],
},
output: 'standalone',
}
export default withBundleAnalyzer(nextConfig)