- 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 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
13 lines
254 B
TypeScript
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
|