From 2523a304cf3490be4159495466cc214704e0b59b Mon Sep 17 00:00:00 2001 From: Jeff Emmett Date: Fri, 13 Feb 2026 13:12:46 -0700 Subject: [PATCH] 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 --- frontend/docker-compose.yml | 1 + frontend/next.config.ts | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/frontend/docker-compose.yml b/frontend/docker-compose.yml index 1f152ff..efc9af0 100644 --- a/frontend/docker-compose.yml +++ b/frontend/docker-compose.yml @@ -24,6 +24,7 @@ services: read_only: true tmpfs: - /tmp + - /app/.next/cache cap_drop: - ALL security_opt: diff --git a/frontend/next.config.ts b/frontend/next.config.ts index 05ec20f..f5f51f2 100644 --- a/frontend/next.config.ts +++ b/frontend/next.config.ts @@ -3,6 +3,12 @@ import type { NextConfig } from "next"; const nextConfig: NextConfig = { output: 'standalone', images: { + localPatterns: [ + { + pathname: '/api/assets/**', + search: '', + }, + ], remotePatterns: [ { protocol: 'https',