CCelestiallines.com

From the blog

Notes on PHP, Drupal, Laravel, React, and Next.js development.

Next.js SEO Best Practices for Better Search Rankings

Jun 2026

Next.js SEO Best Practices for Better Search Rankings

Next.js SEO done properly: server-rendering content instead of client-only fetching, the Metadata API and generateMetadata() for per-page uniqueness, canonical URLs, JSON-LD structured data, dynamic sitemap.ts/robots.ts, why internal links matter more than the sitemap alone, and Core Web Vitals.

Read more →
PHP 8.3 New Features Explained

Jun 2026

PHP 8.3 New Features Explained

PHP 8.3's genuinely useful additions: typed class constants, dynamic class constant fetch, the #[\Override] attribute for catching broken inheritance, json_validate(), readonly property cloning, and new Randomizer methods.

Read more →
Laravel Best Practices for Clean, Maintainable Code

Jun 2026

Laravel Best Practices for Clean, Maintainable Code

Laravel maintainability habits that hold up as a codebase grows: thin controllers with action classes, Form Requests, avoiding both fat controllers and fat models, eager loading, database transactions for multi-step writes, testing critical paths, and Pint for consistent style.

Read more →
How to Create a Custom Module in Drupal 10

Jun 2026

How to Create a Custom Module in Drupal 10

Building a real Drupal 10/11 custom module: directory structure, .info.yml, routing, controllers built with dependency injection instead of static service calls, a custom block plugin, enabling the module, and the errors people actually hit.

Read more →
React useEffect: Common Mistakes and How to Avoid Them

Jun 2026

React useEffect: Common Mistakes and How to Avoid Them

Six real useEffect mistakes and their fixes: missing dependencies, misusing the empty dependency array, missing cleanup functions, unhandled fetch race conditions, using an effect where a direct computation would do, and object/array dependencies that break reference equality — plus a pre-flight checklist.

Read more →
How to Deploy a Next.js App with Docker

Jun 2026

How to Deploy a Next.js App with Docker

Deploying Next.js with Docker: standalone output, a proper multi-stage Dockerfile, why the build stage can't reach other services (and the force-dynamic fix for data that must stay fresh), the build-time vs runtime distinction for NEXT_PUBLIC_ variables, and Docker Compose for a full stack.

Read more →