Thumbnails are already optimized (WebP) by the API, so disable Next.js image optimization to avoid redundant CPU work. Switch route handlers from buffering (arrayBuffer) to streaming (response.body) to reduce memory usage and latency. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
12 lines
206 B
JavaScript
12 lines
206 B
JavaScript
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
output: "standalone",
|
|
typedRoutes: true,
|
|
images: {
|
|
minimumCacheTTL: 86400,
|
|
unoptimized: true,
|
|
},
|
|
};
|
|
|
|
export default nextConfig;
|