
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
Temporal in Production: Replacing JavaScript Date, Fixing the Same-Day Bug, and the RSC Boundary Nobody Warns You About
Temporal is the TC39 API that replaces JavaScript's Date object with immutable, time-zone-aware types. We migrated a Next.js application's date handling onto Temporal, and these are our field notes: which Temporal type maps to which field, why Temporal objects cannot be passed as Server Component props, and how to keep the Postgres round-trip honest.
Parallel Routes and Intercepting Routes in the Next.js App Router: Field Notes on the Photo-Modal Pattern
We use parallel routes and intercepting routes to build shareable photo modals in the Next.js App Router — named @slot folders, the (.) interception convention, and the default.tsx file that decides what happens on a hard refresh.
Observability in the Next.js App Router: Field Notes on instrumentation.ts, onRequestError, and the Trace That Leaked Across Requests
instrumentation.ts and onRequestError give the Next.js App Router real tracing and centralized error reporting. Fluid Compute reusing one instance across concurrent requests broke a module-level trace variable we'd relied on for years — our field notes on wiring up OpenTelemetry correctly.
Testing the Next.js App Router: Field Notes on Server Components, Mocking fetch(), and Where Playwright Takes Over
Server Components run through Next.js's RSC renderer, not react-dom, so React Testing Library can't mount them directly. Field notes on the test pyramid that actually works: extracted functions and Client Components in Vitest, Server Actions called directly, and full routes in Playwright.
Database Connections in Serverless: Pool Math, PgBouncer Transaction Mode, and the Flags That Survive It
A connection pool in a serverless deployment is per-instance, not per-application, so the real ceiling is concurrent instances multiplied by pool size. Our team's field notes on why PostgreSQL starts rejecting clients, what Fluid Compute changed, and the driver settings that survive transaction-mode pooling.
Environment Variables in Next.js: Build-Time Inlining, Real Leak Paths, and Failing the Build with Zod
A NEXT_PUBLIC_ variable is not read at runtime — Next.js inlines it into the bundle at build time. Our field notes on the three ways this bites production apps: stale values that survive redeploys, the real paths a server secret takes to the browser, and a Zod schema that fails the build instead of the first request.
Webhooks in the Next.js App Router: Raw Bodies, Signature Verification, and Returning 200 Fast
A webhook signature is an HMAC over the raw request bytes, so parsing the body before verifying destroys the evidence. Our field notes from wiring payment and Git webhooks into the Next.js App Router: req.text(), constant-time comparison, acknowledging fast, and idempotent processing.
next/image in Next.js 16: What Is Not Automatic About Image Optimization
Using next/image is not the same as having fast images. The component lazy-loads every image it renders unless you pass priority, and a wrong sizes prop makes a 400-pixel card download the 3840-pixel candidate. We collected the parts our team has to configure by hand.
Rate Limiting in the Next.js App Router: What Breaks on Serverless and How We Fix It
An in-memory rate limiter is wrong on serverless because every function instance keeps its own counter. We walk through where the counter belongs, how to derive a trustworthy client identity, and why a Next.js Server Action needs its limit inside the action body.
File Uploads in the Next.js App Router: Our Field Notes on Vercel Blob, Client Uploads, and the Callback That Never Fires on localhost
A Vercel Blob client upload sends bytes straight from the browser to storage and never routes them through a Next.js function, which is why it handles files a route handler cannot. The cost is that the database row is written by a server-to-server callback named onUploadCompleted, and that callback never reaches localhost.
Web Push in the Next.js App Router: How We Ship Service Workers, VAPID, and iOS-Safe Permission Flows
Web Push is a browser API that delivers a server-sent notification to a device while the site is closed. We break down the three parts a Next.js App Router project needs — a service worker at the origin root, a VAPID key pair, and a Node.js-runtime route handler — plus the iOS Home Screen rule that silently blocks everything else.
Content Security Policy in the Next.js App Router: Nonces, strict-dynamic, and the Static-Rendering Trade-Off
At Devya we rolled a nonce-based Content Security Policy across our Next.js App Router applications. A per-request nonce plus 'strict-dynamic' is the only script policy that survives the framework's runtime chunk loading — and it quietly converts static routes into dynamic ones. These are our field notes on the trade-off and how we scoped it.
Stay Updated
Subscribe to our newsletter for the latest insights on web design, development, and digital marketing.