[{"data":1,"prerenderedAt":367},["ShallowReactive",2],{"navigation":3,"/blog/postmortem-nuxt-content-404-staging":154,"surround-postmortem-nuxt-content-404-staging":354},[4],{"title":5,"path":6,"stem":7,"children":8,"page":153},"Blog","/blog","blog",[9,13,17,21,25,29,33,37,41,45,49,53,57,61,65,69,73,77,81,85,89,93,97,101,105,109,113,117,121,125,129,133,137,141,145,149],{"title":10,"path":11,"stem":12},"How to Increase Free Tier Memory on AWS EC2","/blog/aws-ec2-ram","blog/aws-ec2-ram",{"title":14,"path":15,"stem":16},"Blooper: The Disappearing Cloudflare Variables","/blog/blooper-cloudflare-env-vars","blog/blooper-cloudflare-env-vars",{"title":18,"path":19,"stem":20},"Blooper: Hardcoded Content Links cause 404s","/blog/blooper-hardcoded-nuxt-content-links","blog/blooper-hardcoded-nuxt-content-links",{"title":22,"path":23,"stem":24},"Blooper: The Invisible SEO","/blog/blooper-nuxt-seo-env","blog/blooper-nuxt-seo-env",{"title":26,"path":27,"stem":28},"Blooper: The SSR Crash of Doom","/blog/blooper-ssr-feedback-form","blog/blooper-ssr-feedback-form",{"title":30,"path":31,"stem":32},"Blooper: The YouTube Crawl Budget Killer","/blog/blooper-video-crawl-budget","blog/blooper-video-crawl-budget",{"title":34,"path":35,"stem":36},"Blooper: PWA Redirecting SPA Routes","/blog/blooper-vite-pwa-ssr-redirects","blog/blooper-vite-pwa-ssr-redirects",{"title":38,"path":39,"stem":40},"Git Branching in 2026: Code State, Environment Isolation, and Modern CD","/blog/branch-theater-staging-branches","blog/branch-theater-staging-branches",{"title":42,"path":43,"stem":44},"The Developer's Guide to Avoiding Cloud Billing Traps in 2026","/blog/cloud-billing-traps-2026","blog/cloud-billing-traps-2026",{"title":46,"path":47,"stem":48},"Disk Management in Linux","/blog/disk-management-in-linux","blog/disk-management-in-linux",{"title":50,"path":51,"stem":52},"Docker Devtools Stage | Powerlevel, OhMyZSH, tmux, fuzzy finder, autocomplete etc","/blog/docker-devtools","blog/docker-devtools",{"title":54,"path":55,"stem":56},"Docker container | Resolving Permission Denied Woes: A Decade-Long Struggle Unraveled","/blog/docker-non-root-user-perms","blog/docker-non-root-user-perms",{"title":58,"path":59,"stem":60},"The Ultimate Guide to Free Tier Hosting Platforms (Serverless & Containers)","/blog/free-hosting-platforms-guide","blog/free-hosting-platforms-guide",{"title":62,"path":63,"stem":64},"Git commands | underrated","/blog/git-commands-underrated","blog/git-commands-underrated",{"title":66,"path":67,"stem":68},"Journey: Taming Edge Caching and KV Storage","/blog/journey-github-streak-caching","blog/journey-github-streak-caching",{"title":70,"path":71,"stem":72},"Kubernetes Cluster Setup Guide","/blog/k8s-setup","blog/k8s-setup",{"title":74,"path":75,"stem":76},"Linux WiFi Drivers","/blog/linux-wifi-drivers","blog/linux-wifi-drivers",{"title":78,"path":79,"stem":80},"4 Common Routing Traps When Migrating to Nuxt i18n","/blog/nuxt-i18n-routing","blog/nuxt-i18n-routing",{"title":82,"path":83,"stem":84},"Patch the CVE, Don't Trigger an Accidental Refactor: Surviving PHP2Shell on Docker","/blog/patching-php2shell-docker-playbook","blog/patching-php2shell-docker-playbook",{"title":86,"path":87,"stem":88},"pfSense basic firewall setup","/blog/pfsense-basic-firewall-setup","blog/pfsense-basic-firewall-setup",{"title":90,"path":91,"stem":92},"pfSense Quickstart","/blog/pfsense-quickstart","blog/pfsense-quickstart",{"title":94,"path":95,"stem":96},"Postmortem: Cloudflare Worker Missing Dependency on Deploy","/blog/postmortem-cloudflare-worker-dependency-deploy","blog/postmortem-cloudflare-worker-dependency-deploy",{"title":98,"path":99,"stem":100},"Postmortem: Serverless HTTP Driver Transaction Failures","/blog/postmortem-neon-http-transactions","blog/postmortem-neon-http-transactions",{"title":102,"path":103,"stem":104},"Postmortem: The Ghost in the Chrome Cache (Nuxt & Cloudflare Pages)","/blog/postmortem-nuxt-cloudflare-chunk-error","blog/postmortem-nuxt-cloudflare-chunk-error",{"title":106,"path":107,"stem":108},"Postmortem: Nuxt Content 404s on Staging Deployments","/blog/postmortem-nuxt-content-404-staging","blog/postmortem-nuxt-content-404-staging",{"title":110,"path":111,"stem":112},"Postmortem: 500 Internal Server Error on ISR Routes","/blog/postmortem-nuxt-content-payload-extraction","blog/postmortem-nuxt-content-payload-extraction",{"title":114,"path":115,"stem":116},"Post-Mortem: Intrusive Database Driver Refactoring","/blog/postmortem-proxy-re-architecting","blog/postmortem-proxy-re-architecting",{"title":118,"path":119,"stem":120},"Post-Mortem: Cloudflare Worker Connection Hang & Resilient DB Fallbacks","/blog/postmortem-worker-db-connection-hang","blog/postmortem-worker-db-connection-hang",{"title":122,"path":123,"stem":124},"Pro Tip: Sandboxing Cloudflare Workers for AI Agents","/blog/pro-tip-wrangler-local-dev-trick","blog/pro-tip-wrangler-local-dev-trick",{"title":126,"path":127,"stem":128},"Proxmox DNS Management","/blog/proxmox-dns","blog/proxmox-dns",{"title":130,"path":131,"stem":132},"Proxmox Recovery","/blog/proxmox-recovery","blog/proxmox-recovery",{"title":134,"path":135,"stem":136},"Proxmox WiFi Connection Story","/blog/proxmox-wifi","blog/proxmox-wifi",{"title":138,"path":139,"stem":140},"roadauth-rails api jwt cors","/blog/rodauth-jwt","blog/rodauth-jwt",{"title":142,"path":143,"stem":144},"SOCKS5 Proxy Quickstart","/blog/sock5-proxy","blog/sock5-proxy",{"title":146,"path":147,"stem":148},"tmux status bar toggle","/blog/tmux-status","blog/tmux-status",{"title":150,"path":151,"stem":152},"UFW - Cheatsheet","/blog/ufw-cheatsheet","blog/ufw-cheatsheet",false,{"id":155,"title":106,"authors":156,"badge":162,"body":164,"date":343,"description":344,"extension":345,"image":346,"imageComponent":347,"meta":348,"navigation":349,"path":107,"pinned":153,"seo":350,"seoImage":351,"stem":108,"__hash__":353},"posts/blog/postmortem-nuxt-content-404-staging.md",[157],{"name":158,"to":159,"avatar":160},"Rahul Dhole","/",{"src":161},"/profile.png",{"label":163},"Postmortem",{"type":165,"value":166,"toc":336},"minimark",[167,172,198,202,231,235,239,274,278,332],[168,169,171],"h2",{"id":170},"_1-the-issue","1. The Issue",[173,174,175,192],"ul",{},[176,177,178,182,183,187,188,191],"li",{},[179,180,181],"strong",{},"Symptom:"," Direct URLs or page reloads to ",[184,185,186],"code",{},"/blog/*"," and ",[184,189,190],{},"/help/*"," threw a 404 error in the Staging environment.",[176,193,194,197],{},[179,195,196],{},"Impact:"," Content routing in Staging was broken for direct links.",[168,199,201],{"id":200},"_2-root-cause","2. Root Cause",[173,203,204,210,220],{},[176,205,206,209],{},[179,207,208],{},"Empty Database:"," The Staging Cloudflare D1 database was completely empty. It lacked all Nuxt Content tables.",[176,211,212,215,216,219],{},[179,213,214],{},"My Mistake:"," I failed to understand that NuxtHub requires the specific ",[184,217,218],{},"nuxthub deploy"," CLI command to automatically sync the database.",[176,221,222,223,226,227,230],{},"Because I was using the vanilla ",[184,224,225],{},"wrangler deploy"," command in my ",[184,228,229],{},"package.json"," scripts, the automated database synchronization was entirely bypassed, leaving the Staging database empty.",[168,232,234],{"id":233},"_3-why-it-was-confusing","3. Why It Was Confusing",[236,237,238],"p",{},"The issue was masked by an illusion that client-side navigation was working:",[173,240,241,259],{},[176,242,243,250,251,254,255,258],{},[179,244,245,246,249],{},"Index Pages (",[184,247,248],{},"/blogs","):"," Code used ",[184,252,253],{},".all()",". Against an empty database, it returned ",[184,256,257],{},"[]",". The page loaded successfully but silently displayed 0 posts.",[176,260,261,250,267,254,270,273],{},[179,262,263,264,249],{},"Individual Posts (",[184,265,266],{},"/blog/post-name",[184,268,269],{},".first()",[184,271,272],{},"null",", which explicitly triggered a 404 error page.",[168,275,277],{"id":276},"_4-the-fix","4. The Fix",[173,279,280,323],{},[176,281,282,285,286],{},[179,283,284],{},"Immediate:"," Manually synced the Staging database using the generated SQL dump:\n",[287,288,293],"pre",{"className":289,"code":290,"language":291,"meta":292,"style":292},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","wrangler d1 execute project-staging --remote --file .nuxt/content/sql_dump.txt\n","bash","",[184,294,295],{"__ignoreMap":292},[296,297,300,304,308,311,314,317,320],"span",{"class":298,"line":299},"line",1,[296,301,303],{"class":302},"sBMFI","wrangler",[296,305,307],{"class":306},"sfazB"," d1",[296,309,310],{"class":306}," execute",[296,312,313],{"class":306}," project-staging",[296,315,316],{"class":306}," --remote",[296,318,319],{"class":306}," --file",[296,321,322],{"class":306}," .nuxt/content/sql_dump.txt\n",[176,324,325,328,329,331],{},[179,326,327],{},"Long-term:"," Hardcoded the database synchronization step directly into the ",[184,330,229],{}," deployment scripts to ensure the deployment command always seeds the D1 database moving forward.",[333,334,335],"style",{},"html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":292,"searchDepth":337,"depth":337,"links":338},2,[339,340,341,342],{"id":170,"depth":337,"text":171},{"id":200,"depth":337,"text":201},{"id":233,"depth":337,"text":234},{"id":276,"depth":337,"text":277},"2026-06-15","Debugging missing content and 404 errors when deploying Nuxt Content to Cloudflare D1.","md",null,{"type":163},{},true,{"title":106,"description":344},{"src":352},"https://placehold.co/800x400/0f172a/3b82f6?text=Nuxt+Content+404s","CPnP1k0STEE17x34MoQtMyKXDEXrYc5hGvD5_yzS4yg",[355,362],{"title":102,"path":103,"stem":104,"description":356,"imageComponent":357,"seoImage":360,"children":-1},"How a routine Nuxt deployment led to a bizarre, Chrome-only \"Failed to fetch dynamically imported module\" crash—and the obscure Cloudflare caching quirk behind it.",{"title":358,"subtitle":359,"type":163},"INCIDENT: Chunk Load Error","Failed to fetch dynamically imported module",{"src":361},"https://placehold.co/800x400/ef4444/ffffff?text=Nuxt+Chunk+Error+Postmortem",{"title":110,"path":111,"stem":112,"description":363,"imageComponent":364,"seoImage":365,"children":-1},"Resolving Nuxt Content payload extraction issues and hydration crashes on ISR routes.",{"type":163},{"src":366},"https://placehold.co/800x400/0f172a/3b82f6?text=Nuxt+ISR+Payload+Extraction",1792753000454]