This repository contains the live production deployment of sturrockshvac.com, built with Next.js (App Router) and deployed to Cloudflare Workers via OpenNext.
It demonstrates:
- Edge-native runtime architecture (Workers-only, no Pages)
- Deterministic deployment workflow via Wrangler
- Canonical host enforcement (www → apex)
- SEO-safe infrastructure hardening
- Structured runtime migration patterns
Canonical host: sturrockshvac.com
www permanently redirects to apex.
This repository exists as a structured reference for:
- Edge-native Next.js App Router runtime
- OpenNext migration patterns
- Cloudflare Workers deployment
- Canonical host and SEO hardening
- Next.js 16.1.6 (App Router)
- OpenNext (
@opennextjs/cloudflare) - Cloudflare Workers (Edge runtime)
- Pure Workers deployment (no Pages)
- Edge-level canonical redirect (www → apex)
- Automatic HTTP → HTTPS
- HSTS enabled (6 months + subdomains)
- Image optimization via
_next/image
- WSL2 (canonical development environment)
- Wrangler CLI deployment
This deployment intentionally avoids static export and Cloudflare Pages in favor of a single-runtime Workers architecture.
npm run build
npm run cf:build
npx wrangler deployNo static export.
No Cloudflare Pages.
Single runtime: Workers.
-
Workers-Only Runtime
Avoided static export and Cloudflare Pages to maintain a single, edge-native execution environment. -
Canonical Host Enforcement at Edge
wwwpermanently redirects to apex at the infrastructure layer to prevent SEO fragmentation. -
Deterministic Deployment Pipeline
Explicitbuild → cf:build → wrangler deployworkflow ensures reproducible releases. -
App Router Architecture
Leveraged Next.js App Router for structured routing and long-term maintainability. -
Runtime Migration via OpenNext
Adopted OpenNext to bridge Next.js runtime semantics with Cloudflare’s Workers environment.
- Mobile-first responsive layout
- Optimized hero images (WebP conversion)
- Structured service directory
- Dynamic routing (App Router)
- Edge caching via Cloudflare
- SEO-safe canonical host configuration
- Fairfax County, VA
- Loudoun County, VA
- Frederick County, MD
Lighthouse (post-migration):
- Performance: 93+
- Accessibility: 96
- Best Practices: 100
- SEO: 100
This repository documents the structured production deployment architecture for sturrockshvac.com.
Brand assets and client materials are used with permission.
© 2012--2026 Sturrock's HVAC-Solutions
