Add localPatterns for /api/assets and writable cache dir

- Configure images.localPatterns to allow /api/assets/** with query strings
- Add /app/.next/cache as tmpfs for image optimization cache (read-only container)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Jeff Emmett 2026-02-13 13:12:46 -07:00
parent 5f0d2eff16
commit 2523a304cf
2 changed files with 7 additions and 0 deletions

View File

@ -24,6 +24,7 @@ services:
read_only: true read_only: true
tmpfs: tmpfs:
- /tmp - /tmp
- /app/.next/cache
cap_drop: cap_drop:
- ALL - ALL
security_opt: security_opt:

View File

@ -3,6 +3,12 @@ import type { NextConfig } from "next";
const nextConfig: NextConfig = { const nextConfig: NextConfig = {
output: 'standalone', output: 'standalone',
images: { images: {
localPatterns: [
{
pathname: '/api/assets/**',
search: '',
},
],
remotePatterns: [ remotePatterns: [
{ {
protocol: 'https', protocol: 'https',