
Our Blog
Explore our blog posts on web design, development, and digital marketing to stay up-to-date with the latest trends and strategies.
Found 112 blog posts
React Activity in Next.js 16: How We Handle Hidden Routes, Re-running Effects, and useEffectEvent
With cacheComponents enabled, Next.js 16 stops unmounting pages and hides them with React's Activity component instead. This is how our team decides which state should survive navigation, resets the DOM side effects that keep running under display: none, uses useEffectEvent to keep re-running Effects cheap, and keeps Playwright from clicking pages the user already left.
BullMQ 6 in NestJS: Stalled Jobs, Deduplication, and Moving Repeatable Jobs to Job Schedulers — Field Notes
How we run BullMQ 6 behind NestJS in production: a noeviction Redis, sandboxed processors that stop stalled jobs from running twice, jobId versus deduplication, and migrating repeatable jobs to Job Schedulers before the BullMQ 6 upgrade.
Refresh Token Rotation in NestJS and Next.js: Reuse Detection, Token Families, and the Parallel-Refresh Race — Field Notes
How we rotate refresh tokens on every use in our NestJS APIs, store them as hashed token families in Postgres, revoke a whole family when a used token comes back, and stop parallel requests and Next.js prefetches from logging users out.
Speculation Rules in Next.js: How We Prerender Hard Navigations Without Breaking Analytics or CSP
The Speculation Rules API lets Chromium prefetch or fully prerender the next page before a click, but in a Next.js App Router app it only speeds up hard navigations. This is how we scope the rules, ship them safely under a strict CSP, keep side-effecting URLs out, and keep prerenders out of our analytics.
Cache Stampedes in Node.js: How We Use Request Coalescing, Redis Locks, and Stale-While-Revalidate for Hot Keys
A hot cache key expiring under load sends every concurrent request to the database at once. Here is how we layer stampede protection in our Node.js and NestJS services: in-process request coalescing, a Redis SET NX lock across instances, soft TTLs that serve stale data while one worker refreshes, probabilistic early expiration, and TTL jitter.
Typed API Contracts from NestJS to Next.js with OpenAPI: How We Keep Frontend Types Honest
We stopped hand-copying DTO types between our NestJS APIs and Next.js frontends and now generate them from the OpenAPI spec Nest already emits. This is our pipeline — the Swagger CLI plugin, openapi-typescript, a per-request openapi-fetch client, and a CI drift check — and the places where generated types still lie.
The Transactional Outbox Pattern in Postgres and NestJS: How We Ended Dual Writes Between the Database and the Queue
We replaced the save-then-publish dual write in our NestJS services with a transactional outbox in Postgres: the event row commits with the business change, a SKIP LOCKED relay publishes it, and consumers deduplicate by event ID. Here is the design, the failure modes it closes, and how we operate it.
JSON-LD in the Next.js App Router: How We Type, Serialize, and Test Structured Data — Field Notes
Our team renders JSON-LD from Next.js App Router Server Components, escapes every less-than sign so content can't close the script tag, types the graph with schema-dts, and keeps it in sync with the page through a CI test. Here's which schema.org types still earn their place in 2026.
Why CORS Breaks Between Next.js and NestJS: Our Field Notes on Preflights, Credentialed Cookies, and Proxying Instead
Every time we split a Next.js frontend from a NestJS API, we hit the same three CORS failures: rejected preflights, a wildcard origin that breaks with cookies, and sessions that never arrive. Here is what each CORS header actually does, the allowlist config we ship, and when we proxy /api through a Next.js rewrite instead.
Graceful Shutdown in Node.js and NestJS on Docker: SIGTERM, Draining, and Hook Order
Our NestJS containers were exiting with code 137 on deploy — SIGKILLed mid-request after Docker's 10-second grace period. Here is how we fixed signal delivery, enabled NestJS shutdown hooks, and moved connection cleanup to the hook that runs after the HTTP server drains.
Claude Code Hooks: How We Turn AI Agent Rules into Deterministic Guardrails
A rule in CLAUDE.md is a request the model usually follows; a Claude Code hook runs every time. We share how our team uses PreToolUse, PostToolUse, and Stop hooks to block secret files, auto-format edits, and refuse to finish on failing type-checks.
Shipping Feature Flags in Next.js with the Vercel Flags SDK
We moved a client's ad-hoc environment-variable flags onto the Flags SDK and the precompute pattern. Here's what the migration looked like and why static rendering was the part worth protecting.
Stay Updated
Subscribe to our newsletter for the latest insights on web design, development, and digital marketing.