Mohamed Gado

Writing

Notes by Mohamed Gado, a senior software engineer, on Next.js, technical SEO and CSS: real bugs from shipped sites, what caused them and the fix.

  1. 16 Nov 2026 · 14 min read

    Reading bank notifications to log expenses automatically, on Android and iOS

    How Masareef turns bank alerts into transactions: the Android notification listener, what iOS allows instead, and the capture rules real banks forced on it.

  2. 13 Nov 2026 · 3 min read

    Next.js sitemap lastmod never changes: derive the date from git, not a sync timestamp

    My Next.js sitemap lastmod stayed at an old date after I edited pages. The fix was to read each file's last real edit from git before pushing.

  3. 13 Nov 2026 · 4 min read

    Vercel Speed Insights score dropped after Lighthouse runs: filter lab traffic with beforeSend

    My own Lighthouse and PageSpeed runs lowered a route's Vercel Speed Insights score from 90+ to 77. A beforeSend filter on the user agent fixed it.

  4. 11 Nov 2026 · 5 min read

    Clerk auth in Next.js: from authMiddleware to proxy.ts and auth.protect()

    My 2023 Clerk demo guarded every route from authMiddleware. What replaced it in Next.js 16: a bare clerkMiddleware() in proxy.ts and auth.protect() per page.

  5. 11 Nov 2026 · 4 min read

    Lemon Squeezy subscription statuses: who should keep access, and the two bugs I shipped

    Expired subscribers kept Pro forever and a failed payment cut access at once. Which Lemon Squeezy statuses grant access, and the one function that decides it.

  6. 11 Nov 2026 · 3 min read

    Next.js opengraph-image in Crawled – currently not indexed: should you fix it?

    Search Console listed my Next.js opengraph-image routes as Crawled – currently not indexed. Why Google fetches them, and what noindex does and doesn't do.

  7. 11 Nov 2026 · 5 min read

    Cutting a Next.js page from 854 KB to 459 KB of HTML by weighing the RSC payload

    My /projects page shipped 854 KB of HTML. Most of it was repeats: one SVG path 98 times, JSON-LD copies of other pages, row classes. How I found and cut each.

  8. 11 Nov 2026 · 4 min read

    How to write a phBot plugin: the Python API, hooks and a working example

    phBot plugins are one Python file in the Plugins folder. The hooks phBot calls, the API calls my ten plugins use, and a small plugin you can run.

  9. 11 Nov 2026 · 4 min read

    phBot Telegram and Discord notifications: how my xNotify plugin works

    xNotify sends phBot events to Telegram and Discord. How it stops five clients sending the same alert five times, and why Discord returned 403 at first.

  10. 11 Nov 2026 · 6 min read

    phBot xControl commands: run a whole party of bots from in-game chat

    Every xControl chat command for phBot, with arguments and defaults from the source: START, FOLLOW, TP, EQUIP, CAPE, REVERSE and walk-script commands.

  11. 11 Nov 2026 · 5 min read

    HSTS preload on Vercel: why the apex redirect ignored my header

    My Next.js headers() set HSTS with includeSubDomains and preload, but Vercel's apex-to-www domain redirect still sent max-age only. Here is the fix.

  12. 10 Nov 2026 · 6 min read

    Why a CSS rotate with will-change: transform makes images and text blurry

    My screenshots looked pixelated though the files were sharp. A 0.9deg rotate under will-change: transform was the cause. The CSS before and after.

  13. 10 Nov 2026 · 7 min read

    Discovered – currently not indexed in Search Console: what it means and what fixed it

    50 of my pages sat in Discovered – currently not indexed. Here is what the status means, why Google skipped them, and the fixes that worked.

  14. 10 Nov 2026 · 4 min read

    Next.js metadata openGraph not inherited: why my subpages lost og:site_name

    Next.js merges metadata shallowly, so a page that sets openGraph drops the layout's og:site_name, og:locale and twitter handles. How I found it and fixed it.

  15. 10 Nov 2026 · 4 min read

    Next.js soft 404: why notFound() returned 200 behind loading.tsx

    Unknown slugs on my Next.js App Router site returned HTTP 200 with index and noindex tags. loading.tsx was the cause, dynamicParams = false the fix.

  16. 10 Nov 2026 · 5 min read

    React error #418: fixing a matchMedia hydration mismatch with useSyncExternalStore

    Minified React error #418 on every page load came from reading window.matchMedia in a useState initializer. useSyncExternalStore fixed it.