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:
parent
5f0d2eff16
commit
2523a304cf
|
|
@ -24,6 +24,7 @@ services:
|
|||
read_only: true
|
||||
tmpfs:
|
||||
- /tmp
|
||||
- /app/.next/cache
|
||||
cap_drop:
|
||||
- ALL
|
||||
security_opt:
|
||||
|
|
|
|||
|
|
@ -3,6 +3,12 @@ import type { NextConfig } from "next";
|
|||
const nextConfig: NextConfig = {
|
||||
output: 'standalone',
|
||||
images: {
|
||||
localPatterns: [
|
||||
{
|
||||
pathname: '/api/assets/**',
|
||||
search: '',
|
||||
},
|
||||
],
|
||||
remotePatterns: [
|
||||
{
|
||||
protocol: 'https',
|
||||
|
|
|
|||
Loading…
Reference in New Issue