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
|
read_only: true
|
||||||
tmpfs:
|
tmpfs:
|
||||||
- /tmp
|
- /tmp
|
||||||
|
- /app/.next/cache
|
||||||
cap_drop:
|
cap_drop:
|
||||||
- ALL
|
- ALL
|
||||||
security_opt:
|
security_opt:
|
||||||
|
|
|
||||||
|
|
@ -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',
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue