Blooper: The Invisible SEO
The Blunder
Google Search Console kept marking pages as "Excluded" with noindex. We tried fixing it by shuffling NUXT_SITE_ENV and NUXT_PUBLIC_SITE_URL around local .env files, expecting the deployment to pick them up.
The "Duh" Moment
Cloudflare Pages ignores local .env files during deployment unless explicitly configured. Without those variables explicitly set in production, the SEO module assumed it was running a preview build and aggressively injected a noindex tag to prevent accidental indexing of a staging site.
The Fix
Added NUXT_SITE_ENV and NUXT_PUBLIC_SITE_URL directly to wrangler.toml under [vars]. Problem solved! 🤦♂️
Comments
Blooper: Hardcoded Content Links cause 404s
Blooper: Hardcoded Content Links cause 404s
Why you should never hardcode UI navigation links to specific markdown file paths.
Blooper: The SSR Crash of Doom
Blooper: The SSR Crash of Doom
How importing a client-side SDK crashed our Server-Side Rendering edge workers.
