fix: cap image sizes and increase memory limit to stop 502 crash loop
Next.js image optimization was generating 3840px images that caused the container to exceed its 128MB memory limit, triggering repeated restarts. Capped deviceSizes to max 1200px and bumped mem_limit to 256MB. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
b0b50bb07c
commit
321e3e3f75
|
|
@ -4,6 +4,7 @@ services:
|
||||||
container_name: xhivart-mirror
|
container_name: xhivart-mirror
|
||||||
init: true
|
init: true
|
||||||
restart: always
|
restart: always
|
||||||
|
mem_limit: 256m
|
||||||
environment:
|
environment:
|
||||||
- SMTP_HOST=${SMTP_HOST}
|
- SMTP_HOST=${SMTP_HOST}
|
||||||
- SMTP_PORT=${SMTP_PORT}
|
- SMTP_PORT=${SMTP_PORT}
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,8 @@ import type { NextConfig } from "next";
|
||||||
const nextConfig: NextConfig = {
|
const nextConfig: NextConfig = {
|
||||||
output: "standalone",
|
output: "standalone",
|
||||||
images: {
|
images: {
|
||||||
|
deviceSizes: [640, 750, 828, 1080, 1200],
|
||||||
|
imageSizes: [16, 32, 48, 64, 96, 128, 256, 384],
|
||||||
localPatterns: [
|
localPatterns: [
|
||||||
{
|
{
|
||||||
pathname: "/images/**",
|
pathname: "/images/**",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue