diff --git a/Dockerfile b/Dockerfile index 66a56ba..859397c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -33,7 +33,7 @@ ENV NEXT_TELEMETRY_DISABLED=1 # V8 heap sınırı ana süreç + statik üretim worker'larına miras kalır. # Turbopack'ın Rust tarafı bu sınırın dışında; onun hedefi next.config.ts'te # turbopackMemoryLimit ile verilir (BUILD_KAYNAK_KISITLI bloğu). -ENV NODE_OPTIONS="--max-old-space-size=1536" +ENV NODE_OPTIONS="--max-old-space-size=1024" ENV BUILD_KAYNAK_KISITLI=1 RUN --mount=type=cache,id=next-cache,target=/app/.next/cache \ pnpm build diff --git a/data/app.db b/data/app.db index a12341c..74daa4a 100644 Binary files a/data/app.db and b/data/app.db differ diff --git a/next.config.ts b/next.config.ts index eab2aae..bcf7645 100644 --- a/next.config.ts +++ b/next.config.ts @@ -30,8 +30,10 @@ const nextConfig: NextConfig = { ...(kaynakKisitli ? { // Turbopack'ın Rust tarafı NODE_OPTIONS heap sınırını görmez; bellek - // hedefi byte cinsinden ayrıca verilir (1.5 GB). - turbopackMemoryLimit: 1_610_612_736, + // hedefi byte cinsinden ayrıca verilir (1 GB). 1.5 GB hedef + Node + // heap'i, ~1.5 GB boş belleği olan VPS'te derleme fazında OOM-kill + // üretiyordu (lokalde --memory=1536m ile reprodüke edildi). + turbopackMemoryLimit: 1_073_741_824, // Statik üretim: varsayılan 4 worker × 8 eşzamanlı sayfa yerine tek // worker × 4 sayfa. Her worker ayrı bir Node süreci/heap'idir. cpus: 1, diff --git a/src/features/sihirbaz/components/sihirbaz-adimlar.tsx b/src/features/sihirbaz/components/sihirbaz-adimlar.tsx index 8952528..a4b3f83 100644 --- a/src/features/sihirbaz/components/sihirbaz-adimlar.tsx +++ b/src/features/sihirbaz/components/sihirbaz-adimlar.tsx @@ -8,7 +8,7 @@ // üniversite tipi sayıları kategori+il'e göre /api/facetler'den tazelenir. import { useEffect, useMemo, useState } from "react"; -import { ArrowLeft, ArrowRight, X } from "lucide-react"; +import { ArrowLeft, ArrowRight, Search, X } from "lucide-react"; import { useReducedMotion } from "motion/react"; import useMeasure from "react-use-measure"; import { toast } from "sonner"; @@ -27,11 +27,14 @@ export function Cip({ secili, onClick, children, + kucuk = false, }: { secili: boolean; onClick: () => void; children: React.ReactNode; + kucuk?: boolean; }) { + const boyut = kucuk ? "px-2.5 py-1 text-xs" : "px-3.5 py-2 text-sm"; return (
++ “{ilArama.trim()}” ile eşleşen il yok. +
+ ) : null} + + {gorunenDisIller.length > 0 ? (KKTC & Yurt Dışı