blog.hangerthem.com/next.config.ts
HangerThem 88c8676d3f perf: image loading, smaller assets, server-rendered code blocks
- Only preload the post cover and latest-post image instead of every image
- Drop in-post image quality from 100 to 90 and add responsive sizes
- Downscale 2940px screenshots to 1800px; convert linkboard-old to WebP
  (3.1 MB -> 60 KB)
- Make CodeWrapper a server component; only CopyButton ships to the client
- Pin the Mermaid CDN script to an exact version for reproducible builds
2026-10-19 14:17:18 +02:00

13 lines
254 B
TypeScript

import type { NextConfig } from 'next'
const nextConfig: NextConfig = {
images: {
qualities: [75, 90],
},
env: {
GIT_COMMIT_HASH: process.env.SOURCE_COMMIT,
GIT_ORIGIN_URL: process.env.GIT_ORIGIN_URL,
},
}
export default nextConfig