Deploying Next.js 15 Static Export to Cloudflare Workers with OpenTofu

Step-by-step guide to deploying a Next.js 15 static export to Cloudflare Workers using OpenTofu for infrastructure, GitHub Actions for CI/CD, and custom worker middleware for security headers, redirects, and legacy domain handling.