feat: add insight page with Lighthouse analysis

- New /dashboard/insight page: URL analizi, mobil/masaüstü strateji seçimi
- Core Web Vitals, fırsatlar ve teşhis bölümleri
- PSI throttling değerleri ile eşleştirildi
- Dockerfile: Chromium eklendi (insight için), .dockerignore oluşturuldu
- serverExternalPackages: lighthouse ve chrome-launcher bundle dışına alındı

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
mstfyldz
2026-06-06 01:37:13 +03:00
co-authored by Claude Sonnet 4.6
parent a4c58135df
commit 851ce96703
8 changed files with 2594 additions and 23 deletions
+8 -2
View File
@@ -23,10 +23,17 @@ RUN npm run build
FROM base AS runner
WORKDIR /app
RUN apk add --no-cache postgresql-client
RUN apk add --no-cache \
postgresql-client \
chromium \
freetype \
fontconfig \
ttf-freefont
ENV NODE_ENV=production
ENV NEXT_TELEMETRY_DISABLED=1
# chrome-launcher'ın Alpine'daki Chromium binary'sini bulması için
ENV CHROME_PATH=/usr/bin/chromium-browser
RUN addgroup --system --gid 1001 nodejs
RUN adduser --system --uid 1001 nextjs
@@ -39,7 +46,6 @@ RUN chown nextjs:nodejs .next
COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./
COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static
# config.json dosyasına yazma izni verebilmek için boş bir dosya oluşturup sahipliğini veriyoruz
RUN touch config.json && chown nextjs:nodejs config.json
USER nextjs