[{"data":1,"prerenderedAt":1876},["ShallowReactive",2],{"en-blog-detail-/en/blog/20261125-nuxt-prerender-docker-build-env-ci-smoke-gate-2026-12-03":3,"en-blog-linked-project-/en/blog/20261125-nuxt-prerender-docker-build-env-ci-smoke-gate-2026-12-03":1851,"en-blog-ko-counterpart-/en/blog/20261125-nuxt-prerender-docker-build-env-ci-smoke-gate-2026-12-03":1865,"en-blog-surround-/en/blog/20261125-nuxt-prerender-docker-build-env-ci-smoke-gate-2026-12-03":1866},{"id":4,"title":5,"adsEnabled":6,"author":7,"body":8,"buildLogLabel":1844,"category":1845,"coverImage":1846,"coverImageAlt":1847,"date":1848,"description":1849,"extension":1850,"faq":1851,"meta":1852,"navigation":6,"noindex":1853,"path":1854,"project":1851,"promo":1853,"seo":1855,"seoDescription":1851,"seoTitle":1851,"status":1856,"stem":1857,"tags":1858,"__hash__":1864},"enBlog/en/blog/20261125-Nuxt-Prerender-Docker-Build-Env-CI-Smoke-Gate.md","Missing Docker Build-Time Env Vars in Nuxt 4 Static Prerendering & Dual CI Smoke Gates",true,"KangSum",{"type":9,"value":10,"toc":1835},"minimark",[11,15,38,57,80,83,88,94,129,182,433,471,576,579,581,585,611,644,675,682,692,695,745,770,772,779,790,819,1136,1155,1158,1227,1233,1235,1242,1268,1290,1398,1412,1625,1639,1642,1718,1732,1752,1754,1758,1764,1831],[12,13,5],"h1",{"id":14},"missing-docker-build-time-env-vars-in-nuxt-4-static-prerendering-dual-ci-smoke-gates",[16,17,18,19,23,24,27,28,31,32,37],"p",{},"When optimizing Time to First Byte (TTFB) and Core Web Vitals on a content-driven web application, the highest-leverage stack combines ",[20,21,22],"strong",{},"dynamic font subsetting",", ",[20,25,26],{},"build-time static prerendering",", and ",[20,29,30],{},"CDN edge caching",". Applying all three simultaneously on ",[33,34,36],"a",{"href":35},"https://inmokang.com","inmokang.com"," eliminated per-request Node.js markdown and SQLite lookups and brought initial document responses down to static-HTML speed.",[16,39,40,41,45,46,52,53,56],{},"Immediately after the deployment pipeline turned green (",[42,43,44],"code",{},"Success","), however, a quiet paradox appeared. Pages loaded faster than ever, yet ",[20,47,48,49],{},"both real-time GA4 sessions and automated HTML telemetry checks flatlined at ",[42,50,51],{},"0",". Every route returned a healthy ",[42,54,55],{},"200 OK",", but the analytics script had vanished completely from the served HTML.",[16,58,59,60,63,64,67,68,71,72,75,76,79],{},"The root cause was an overlooked lifecycle shift: Nuxt had moved rendering from ",[20,61,62],{},"runtime SSR"," to ",[20,65,66],{},"build-time prerendering",", while our multi-stage ",[42,69,70],{},"Dockerfile"," and GitHub Actions workflow still relied exclusively on runtime ",[42,73,74],{},"ENV"," injection. This post walks through our three-part latency optimization, dissects the post-purge analytics outage, and details how direct ",[42,77,78],{},"app.head"," injection, an inline internal-traffic guard, and dual CI HTML smoke gates permanently closed the failure mode.",[81,82],"hr",{},[84,85,87],"h2",{"id":86},"_1-initial-latency-optimization-dynamic-font-subsets-static-prerendering-edge-caching","1. Initial Latency Optimization: Dynamic Font Subsets, Static Prerendering & Edge Caching",[16,89,90,91,93],{},"The optimization started from a simple question: why re-render infrequently updated blog posts and project write-ups via dynamic SSR on every single visitor request? To fix that, we redesigned ",[33,92,36],{"href":35},"'s rendering and asset-delivery pipeline across three layers.",[16,95,96,97,100,101,104,105,108,109,112,113,116,117,120,121,124,125,128],{},"First came ",[20,98,99],{},"web font payload reduction",". Switching from a monolithic variable font bundle to ",[42,102,103],{},"pretendardvariable-dynamic-subset.css"," shaved roughly ",[42,106,107],{},"748KB"," off initial transfer weight. In ",[42,110,111],{},"@nuxt/fonts",", we pinned ",[42,114,115],{},"provider: 'none'"," for ",[42,118,119],{},"Pretendard Variable"," and ",[42,122,123],{},"Pretendard"," and declared only the weights actually rendered (",[42,126,127],{},"weights: [400, 500, 600]","), preventing redundant external provider lookups and unnecessary preload hints.",[16,130,131,132,139,140,143,144,147,148,120,151,154,155,120,158,161,162,165,166,23,169,23,172,23,175,27,178,181],{},"Second came ",[20,133,134,135,138],{},"content-driven static prerendering (",[42,136,137],{},"PRERENDER_ROUTES",")",". When ",[42,141,142],{},"nuxt.config.ts"," evaluates, a ",[42,145,146],{},"collectPrerenderContentRoutes()"," helper scans ",[42,149,150],{},"content/projects/*.md",[42,152,153],{},"content/blog/*.md",", selecting only routes where ",[42,156,157],{},"status === 'published'",[42,159,160],{},"noindex !== true",", and registers them under ",[42,163,164],{},"nitro.prerender.routes",". Paired with fixed routes such as ",[42,167,168],{},"/about",[42,170,171],{},"/privacy",[42,173,174],{},"/terms",[42,176,177],{},"/rss.xml",[42,179,180],{},"/llms.txt",", the build emits complete static HTML documents and feed artifacts ahead of time.",[183,184,189],"pre",{"className":185,"code":186,"language":187,"meta":188,"style":188},"language-ts shiki shiki-themes github-light github-dark","// nuxt.config.ts: Register only published, indexable content routes for static prerendering\nconst PRERENDER_ROUTES = collectPrerenderContentRoutes()\n\nexport default defineNuxtConfig({\n  css: [\n    'pretendard/dist/web/variable/pretendardvariable-dynamic-subset.css',\n    '~/assets/css/main.css',\n  ],\n  fonts: {\n    defaults: { weights: [400, 500, 600], styles: ['normal'] },\n    families: [\n      { name: 'Pretendard Variable', provider: 'none' },\n      { name: 'Pretendard', provider: 'none' },\n      { name: 'JetBrains Mono', preload: false },\n    ],\n  },\n  nitro: {\n    compressPublicAssets: true,\n    prerender: {\n      crawlLinks: false,\n      routes: PRERENDER_ROUTES,\n    },\n  },\n})\n","ts","",[42,190,191,200,222,228,243,249,259,267,273,279,307,313,331,345,361,367,373,379,390,396,406,416,422,427],{"__ignoreMap":188},[192,193,196],"span",{"class":194,"line":195},"line",1,[192,197,199],{"class":198},"sJ8bj","// nuxt.config.ts: Register only published, indexable content routes for static prerendering\n",[192,201,203,207,211,214,218],{"class":194,"line":202},2,[192,204,206],{"class":205},"szBVR","const",[192,208,210],{"class":209},"sj4cs"," PRERENDER_ROUTES",[192,212,213],{"class":205}," =",[192,215,217],{"class":216},"sScJk"," collectPrerenderContentRoutes",[192,219,221],{"class":220},"sVt8B","()\n",[192,223,225],{"class":194,"line":224},3,[192,226,227],{"emptyLinePlaceholder":6},"\n",[192,229,231,234,237,240],{"class":194,"line":230},4,[192,232,233],{"class":205},"export",[192,235,236],{"class":205}," default",[192,238,239],{"class":216}," defineNuxtConfig",[192,241,242],{"class":220},"({\n",[192,244,246],{"class":194,"line":245},5,[192,247,248],{"class":220},"  css: [\n",[192,250,252,256],{"class":194,"line":251},6,[192,253,255],{"class":254},"sZZnC","    'pretendard/dist/web/variable/pretendardvariable-dynamic-subset.css'",[192,257,258],{"class":220},",\n",[192,260,262,265],{"class":194,"line":261},7,[192,263,264],{"class":254},"    '~/assets/css/main.css'",[192,266,258],{"class":220},[192,268,270],{"class":194,"line":269},8,[192,271,272],{"class":220},"  ],\n",[192,274,276],{"class":194,"line":275},9,[192,277,278],{"class":220},"  fonts: {\n",[192,280,282,285,288,290,293,295,298,301,304],{"class":194,"line":281},10,[192,283,284],{"class":220},"    defaults: { weights: [",[192,286,287],{"class":209},"400",[192,289,23],{"class":220},[192,291,292],{"class":209},"500",[192,294,23],{"class":220},[192,296,297],{"class":209},"600",[192,299,300],{"class":220},"], styles: [",[192,302,303],{"class":254},"'normal'",[192,305,306],{"class":220},"] },\n",[192,308,310],{"class":194,"line":309},11,[192,311,312],{"class":220},"    families: [\n",[192,314,316,319,322,325,328],{"class":194,"line":315},12,[192,317,318],{"class":220},"      { name: ",[192,320,321],{"class":254},"'Pretendard Variable'",[192,323,324],{"class":220},", provider: ",[192,326,327],{"class":254},"'none'",[192,329,330],{"class":220}," },\n",[192,332,334,336,339,341,343],{"class":194,"line":333},13,[192,335,318],{"class":220},[192,337,338],{"class":254},"'Pretendard'",[192,340,324],{"class":220},[192,342,327],{"class":254},[192,344,330],{"class":220},[192,346,348,350,353,356,359],{"class":194,"line":347},14,[192,349,318],{"class":220},[192,351,352],{"class":254},"'JetBrains Mono'",[192,354,355],{"class":220},", preload: ",[192,357,358],{"class":209},"false",[192,360,330],{"class":220},[192,362,364],{"class":194,"line":363},15,[192,365,366],{"class":220},"    ],\n",[192,368,370],{"class":194,"line":369},16,[192,371,372],{"class":220},"  },\n",[192,374,376],{"class":194,"line":375},17,[192,377,378],{"class":220},"  nitro: {\n",[192,380,382,385,388],{"class":194,"line":381},18,[192,383,384],{"class":220},"    compressPublicAssets: ",[192,386,387],{"class":209},"true",[192,389,258],{"class":220},[192,391,393],{"class":194,"line":392},19,[192,394,395],{"class":220},"    prerender: {\n",[192,397,399,402,404],{"class":194,"line":398},20,[192,400,401],{"class":220},"      crawlLinks: ",[192,403,358],{"class":209},[192,405,258],{"class":220},[192,407,409,412,414],{"class":194,"line":408},21,[192,410,411],{"class":220},"      routes: ",[192,413,137],{"class":209},[192,415,258],{"class":220},[192,417,419],{"class":194,"line":418},22,[192,420,421],{"class":220},"    },\n",[192,423,425],{"class":194,"line":424},23,[192,426,372],{"class":220},[192,428,430],{"class":194,"line":429},24,[192,431,432],{"class":220},"})\n",[16,434,435,436,439,440,443,444,447,448,451,452,455,456,459,460,120,463,466,467,470],{},"Third came ",[20,437,438],{},"Nitro cache headers paired with Cloudflare edge warmup",". Inside ",[42,441,442],{},"server/plugins/seo-headers.ts",", clean ",[42,445,446],{},"200"," HTML responses without query strings receive ",[42,449,450],{},"Cache-Control: public, max-age=0, s-maxage=3600, stale-while-revalidate=86400",", whereas query-parameterized requests (",[42,453,454],{},"search !== ''",") and ",[42,457,458],{},"4xx/5xx"," responses are locked down with ",[42,461,462],{},"private, no-cache, no-store",[42,464,465],{},"X-Robots-Tag: noindex, nofollow",". Right after container rollout, GitHub Actions invokes Cloudflare's ",[42,468,469],{},"purge_everything"," API and walks key URLs to warm edge PoPs immediately.",[472,473,474,491],"table",{},[475,476,477],"thead",{},[478,479,480,485,488],"tr",{},[481,482,484],"th",{"align":483},"left","Dimension",[481,486,487],{"align":483},"Legacy Dynamic SSR Model",[481,489,490],{"align":483},"Build-Time Prerender + Edge Cache Model",[492,493,494,515,536,561],"tbody",{},[478,495,496,502,505],{},[497,498,499],"td",{"align":483},[20,500,501],{},"HTML generation timing",[497,503,504],{"align":483},"Rendered per request inside the Node.js Nitro server",[497,506,507,508,511,512],{"align":483},"Pre-generated during ",[42,509,510],{},"npm run build"," inside ",[42,513,514],{},"docker build",[478,516,517,522,525],{},[497,518,519],{"align":483},[20,520,521],{},"Initial font & header cost",[497,523,524],{"align":483},"Full monolithic font download + per-request SSR CPU",[497,526,527,528,531,532,535],{"align":483},"Dynamic subset (",[42,529,530],{},"~748KB"," saved) + ",[42,533,534],{},"s-maxage=3600"," edge hits",[478,537,538,543,550],{},[497,539,540],{"align":483},[20,541,542],{},"Env var evaluation point",[497,544,545,546,549],{"align":483},"Read from ",[42,547,548],{},"docker run -e"," at container startup",[497,551,552,553,556,557,560],{"align":483},"Frozen from ",[42,554,555],{},"process.env"," during the ",[42,558,559],{},"builder"," stage",[478,562,563,568,571],{},[497,564,565],{"align":483},[20,566,567],{},"Post-deploy cache refresh",[497,569,570],{"align":483},"Live immediately after container swap",[497,572,573,574],{"align":483},"Propagated globally after Cloudflare ",[42,575,469],{},[16,577,578],{},"With this pipeline in place, both human readers and search crawlers receive prebuilt HTML straight from Cloudflare's edge with near-zero origin load. Yet that exact shift in when HTML gets generated immediately exposed a hidden environment-variable binding trap.",[81,580],{},[84,582,584],{"id":583},"_2-incident-post-mortem-why-ga4-sessions-dropped-to-zero-right-after-cache-purge","2. Incident Post-Mortem: Why GA4 Sessions Dropped to Zero Right After Cache Purge",[16,586,587,588,591,592,595,596,63,599,602,603,606,607,610],{},"The telemetry outage was not caused by a syntax bug—it was caused by a ",[20,589,590],{},"timeline mismatch between Docker's build stage and runtime stage",". Under the previous dynamic SSR setup (",[42,593,594],{},"node ./.output/server/index.mjs","), passing ",[42,597,598],{},"-e NUXT_PUBLIC_GTAG_ID=G-XXXXXXXXXX",[42,600,601],{},"docker run"," allowed the running Nitro server to serialize the ID into ",[42,604,605],{},"window.__NUXT__.config.public",", after which ",[42,608,609],{},"nuxt-gtag"," loaded the script during client hydration.",[16,612,613,614,617,618,620,621,623,624,627,628,631,632,635,636,639,640,643],{},"Turning on static prerendering moved HTML generation earlier, into ",[42,615,616],{},"FROM node:20 AS builder"," inside the ",[42,619,70],{},". At that point, our ",[42,622,559],{}," stage declared no ",[42,625,626],{},"ARG NUXT_PUBLIC_GTAG_ID",", and the ",[42,629,630],{},"docker/build-push-action"," step in ",[42,633,634],{},".github/workflows/deploy.yml"," passed zero ",[42,637,638],{},"build-args",". We were still faithfully injecting ",[42,641,642],{},"-e NUXT_PUBLIC_GTAG_ID=..."," only when starting the runtime container.",[16,645,646,647,649,650,652,653,23,656,659,660,663,664,666,667,670,671,674],{},"Consequently, when ",[42,648,510],{}," iterated through ",[42,651,137],{}," to bake ",[42,654,655],{},".output/public/.../index.html",[42,657,658],{},"process.env.NUXT_PUBLIC_GTAG_ID"," evaluated to an empty string (",[42,661,662],{},"\"\"","). Compounded by ",[42,665,609],{}," either deferring to client hydration or disabling itself on an empty ID, not a single ",[42,668,669],{},"\u003Cscript async src=\"https://www.googletagmanager.com/gtag/js?id=...\">"," tag was baked into the prerendered ",[42,672,673],{},"\u003Chead>",".",[16,676,677],{},[678,679],"img",{"alt":680,"src":681},"Architecture diagram comparing environment variable binding timing between Nuxt 4 dynamic SSR and static prerendering alongside the dual CI HTML smoke gate pipeline","/images/content-images/blog/20261125-Nuxt-Prerender-Docker-Build-Env-CI-Smoke-Gate/20261125-Nuxt-Prerender-Docker-Build-Env-CI-Smoke-Gate002.png",[16,683,684,685,687,688,691],{},"The trigger that surfaced the defect globally was the final Cloudflare ",[42,686,469],{}," step in CI. Before the purge, stale edge-cached HTML from the older SSR deployment masked the missing tag. The instant CI flushed the cache and warmed the routes, ",[20,689,690],{},"GA4-stripped static HTML"," propagated to every edge PoP worldwide.",[16,693,694],{},"Tracing the failure chain step by step makes the gap obvious:",[696,697,698,716,736],"ol",{},[699,700,701,704,705,707,708,711,712,715],"li",{},[20,702,703],{},"Docker image build stage:"," Because the ",[42,706,559],{}," stage had no ",[42,709,710],{},"ARG",", every prerendered HTML document and its serialized ",[42,713,714],{},"runtimeConfig.public"," payload were baked with an empty ID.",[699,717,718,721,722,724,725,728,729,732,733,735],{},[20,719,720],{},"Container startup & local health check:"," ",[42,723,548],{}," supplied the runtime env var, which could not mutate already-baked static files under ",[42,726,727],{},".output/public/",". Meanwhile, ",[42,730,731],{},"curl -fsS http://127.0.0.1:3002/"," only checked for ",[42,734,55],{}," and happily passed.",[699,737,738,741,742,744],{},[20,739,740],{},"Cloudflare purge & warmup:"," Flushing the old cache promoted the broken static HTML across the global edge, dropping real-time GA4 sessions and automated HTML verification checks to ",[42,743,51],{}," simultaneously.",[746,747,748],"blockquote",{},[16,749,750,753,754,756,757,760,761,764,765,767,768,674],{},[20,751,752],{},"Key Takeaway:","\nThe moment ",[42,755,164],{}," is enabled, ",[42,758,759],{},"NUXT_PUBLIC_*"," values stop behaving like runtime configuration and become ",[20,762,763],{},"build-time constants",". Passing the right values via ",[42,766,548],{}," will never rewrite meta or script tags already baked into ",[42,769,727],{},[81,771],{},[84,773,775,776,778],{"id":774},"_3-fix-architecture-1-deterministic-ssr-head-injection-internal-traffic-guard","3. Fix Architecture 1: Deterministic SSR ",[42,777,673],{}," Injection & Internal-Traffic Guard",[16,780,781,782,785,786,789],{},"Once the root cause was clear, our first architectural fix changed how the GA4 script enters the document. Relying on a client-side plugin that appends ",[42,783,784],{},"\u003Cscript>"," tags only after Vue hydration makes deterministic verification from raw ",[42,787,788],{},"curl"," responses or static HTML snapshots unnecessarily fragile.",[16,791,792,793,796,797,799,800,802,803,806,807,810,811,814,815,818],{},"Instead, we disabled duplicate client injection (",[42,794,795],{},"gtag: { enabled: false }",") in ",[42,798,142],{}," and baked the tags directly into the top of ",[42,801,673],{}," via ",[42,804,805],{},"app.head.script"," whenever ",[42,808,809],{},"IS_PRODUCTION && Boolean(GTAG_ID)"," holds. A ",[42,812,813],{},"DEFAULT_GTAG_ID"," fallback and ",[42,816,817],{},".trim()"," guard protect against trailing whitespace or unset variables.",[183,820,822],{"className":185,"code":821,"language":187,"meta":188,"style":188},"// nuxt.config.ts (Masked identifier example)\nconst DEFAULT_GTAG_ID = 'G-XXXXXXXXXX'\nconst GTAG_ID = (process.env.NUXT_PUBLIC_GTAG_ID || DEFAULT_GTAG_ID).trim()\nconst IS_PRODUCTION = process.env.NODE_ENV === 'production'\n\nexport default defineNuxtConfig({\n  app: {\n    head: {\n      script: IS_PRODUCTION && Boolean(GTAG_ID)\n        ? [\n            {\n              src: `https://www.googletagmanager.com/gtag/js?id=${encodeURIComponent(GTAG_ID)}`,\n              async: true,\n              tagPosition: 'head',\n            },\n            {\n              innerHTML: `window.dataLayer=window.dataLayer||[];function gtag(){dataLayer.push(arguments);}(function(){try{var h=(location.hostname||'').toLowerCase();var q=new URLSearchParams(location.search).get('internal');if(q==='1')localStorage.setItem('inmokang_internal_traffic','1');else if(q==='0')localStorage.removeItem('inmokang_internal_traffic');var internal=q==='1'||(q!=='0'&&localStorage.getItem('inmokang_internal_traffic')==='1');var local=!h||h==='localhost'||h==='127.0.0.1'||h==='0.0.0.0'||h==='::1'||h==='[::1]'||h.endsWith('.localhost')||h.endsWith('.local')||h.endsWith('.internal');if(local||internal){window['ga-disable-${GTAG_ID}']=true;}}catch(e){}})();gtag('js',new Date());gtag('config','${GTAG_ID}');`,\n              tagPosition: 'head',\n            },\n          ]\n        : [],\n    },\n  },\n  gtag: {\n    enabled: false,\n    id: GTAG_ID,\n  },\n  runtimeConfig: {\n    public: {\n      clarityId: process.env.NUXT_PUBLIC_CLARITY_ID || 'YOUR_CLARITY_ID',\n      gtagId: GTAG_ID,\n    },\n  },\n})\n",[42,823,824,829,841,869,890,894,904,909,914,937,945,950,972,981,991,996,1000,1020,1028,1032,1037,1045,1049,1053,1058,1068,1078,1083,1089,1095,1111,1121,1126,1131],{"__ignoreMap":188},[192,825,826],{"class":194,"line":195},[192,827,828],{"class":198},"// nuxt.config.ts (Masked identifier example)\n",[192,830,831,833,836,838],{"class":194,"line":202},[192,832,206],{"class":205},[192,834,835],{"class":209}," DEFAULT_GTAG_ID",[192,837,213],{"class":205},[192,839,840],{"class":254}," 'G-XXXXXXXXXX'\n",[192,842,843,845,848,850,853,856,859,861,864,867],{"class":194,"line":224},[192,844,206],{"class":205},[192,846,847],{"class":209}," GTAG_ID",[192,849,213],{"class":205},[192,851,852],{"class":220}," (process.env.",[192,854,855],{"class":209},"NUXT_PUBLIC_GTAG_ID",[192,857,858],{"class":205}," ||",[192,860,835],{"class":209},[192,862,863],{"class":220},").",[192,865,866],{"class":216},"trim",[192,868,221],{"class":220},[192,870,871,873,876,878,881,884,887],{"class":194,"line":230},[192,872,206],{"class":205},[192,874,875],{"class":209}," IS_PRODUCTION",[192,877,213],{"class":205},[192,879,880],{"class":220}," process.env.",[192,882,883],{"class":209},"NODE_ENV",[192,885,886],{"class":205}," ===",[192,888,889],{"class":254}," 'production'\n",[192,891,892],{"class":194,"line":245},[192,893,227],{"emptyLinePlaceholder":6},[192,895,896,898,900,902],{"class":194,"line":251},[192,897,233],{"class":205},[192,899,236],{"class":205},[192,901,239],{"class":216},[192,903,242],{"class":220},[192,905,906],{"class":194,"line":261},[192,907,908],{"class":220},"  app: {\n",[192,910,911],{"class":194,"line":269},[192,912,913],{"class":220},"    head: {\n",[192,915,916,919,922,925,928,931,934],{"class":194,"line":275},[192,917,918],{"class":220},"      script: ",[192,920,921],{"class":209},"IS_PRODUCTION",[192,923,924],{"class":205}," &&",[192,926,927],{"class":216}," Boolean",[192,929,930],{"class":220},"(",[192,932,933],{"class":209},"GTAG_ID",[192,935,936],{"class":220},")\n",[192,938,939,942],{"class":194,"line":281},[192,940,941],{"class":205},"        ?",[192,943,944],{"class":220}," [\n",[192,946,947],{"class":194,"line":309},[192,948,949],{"class":220},"            {\n",[192,951,952,955,958,961,963,965,967,970],{"class":194,"line":315},[192,953,954],{"class":220},"              src: ",[192,956,957],{"class":254},"`https://www.googletagmanager.com/gtag/js?id=${",[192,959,960],{"class":216},"encodeURIComponent",[192,962,930],{"class":254},[192,964,933],{"class":209},[192,966,138],{"class":254},[192,968,969],{"class":254},"}`",[192,971,258],{"class":220},[192,973,974,977,979],{"class":194,"line":333},[192,975,976],{"class":220},"              async: ",[192,978,387],{"class":209},[192,980,258],{"class":220},[192,982,983,986,989],{"class":194,"line":347},[192,984,985],{"class":220},"              tagPosition: ",[192,987,988],{"class":254},"'head'",[192,990,258],{"class":220},[192,992,993],{"class":194,"line":363},[192,994,995],{"class":220},"            },\n",[192,997,998],{"class":194,"line":369},[192,999,949],{"class":220},[192,1001,1002,1005,1008,1010,1013,1015,1018],{"class":194,"line":375},[192,1003,1004],{"class":220},"              innerHTML: ",[192,1006,1007],{"class":254},"`window.dataLayer=window.dataLayer||[];function gtag(){dataLayer.push(arguments);}(function(){try{var h=(location.hostname||'').toLowerCase();var q=new URLSearchParams(location.search).get('internal');if(q==='1')localStorage.setItem('inmokang_internal_traffic','1');else if(q==='0')localStorage.removeItem('inmokang_internal_traffic');var internal=q==='1'||(q!=='0'&&localStorage.getItem('inmokang_internal_traffic')==='1');var local=!h||h==='localhost'||h==='127.0.0.1'||h==='0.0.0.0'||h==='::1'||h==='[::1]'||h.endsWith('.localhost')||h.endsWith('.local')||h.endsWith('.internal');if(local||internal){window['ga-disable-${",[192,1009,933],{"class":209},[192,1011,1012],{"class":254},"}']=true;}}catch(e){}})();gtag('js',new Date());gtag('config','${",[192,1014,933],{"class":209},[192,1016,1017],{"class":254},"}');`",[192,1019,258],{"class":220},[192,1021,1022,1024,1026],{"class":194,"line":381},[192,1023,985],{"class":220},[192,1025,988],{"class":254},[192,1027,258],{"class":220},[192,1029,1030],{"class":194,"line":392},[192,1031,995],{"class":220},[192,1033,1034],{"class":194,"line":398},[192,1035,1036],{"class":220},"          ]\n",[192,1038,1039,1042],{"class":194,"line":408},[192,1040,1041],{"class":205},"        :",[192,1043,1044],{"class":220}," [],\n",[192,1046,1047],{"class":194,"line":418},[192,1048,421],{"class":220},[192,1050,1051],{"class":194,"line":424},[192,1052,372],{"class":220},[192,1054,1055],{"class":194,"line":429},[192,1056,1057],{"class":220},"  gtag: {\n",[192,1059,1061,1064,1066],{"class":194,"line":1060},25,[192,1062,1063],{"class":220},"    enabled: ",[192,1065,358],{"class":209},[192,1067,258],{"class":220},[192,1069,1071,1074,1076],{"class":194,"line":1070},26,[192,1072,1073],{"class":220},"    id: ",[192,1075,933],{"class":209},[192,1077,258],{"class":220},[192,1079,1081],{"class":194,"line":1080},27,[192,1082,372],{"class":220},[192,1084,1086],{"class":194,"line":1085},28,[192,1087,1088],{"class":220},"  runtimeConfig: {\n",[192,1090,1092],{"class":194,"line":1091},29,[192,1093,1094],{"class":220},"    public: {\n",[192,1096,1098,1101,1104,1106,1109],{"class":194,"line":1097},30,[192,1099,1100],{"class":220},"      clarityId: process.env.",[192,1102,1103],{"class":209},"NUXT_PUBLIC_CLARITY_ID",[192,1105,858],{"class":205},[192,1107,1108],{"class":254}," 'YOUR_CLARITY_ID'",[192,1110,258],{"class":220},[192,1112,1114,1117,1119],{"class":194,"line":1113},31,[192,1115,1116],{"class":220},"      gtagId: ",[192,1118,933],{"class":209},[192,1120,258],{"class":220},[192,1122,1124],{"class":194,"line":1123},32,[192,1125,421],{"class":220},[192,1127,1129],{"class":194,"line":1128},33,[192,1130,372],{"class":220},[192,1132,1134],{"class":194,"line":1133},34,[192,1135,432],{"class":220},[16,1137,1138,1139,1142,1143,1146,1147,1150,1151,1154],{},"The critical detail here is the ",[20,1140,1141],{},"local and internal traffic suppression guard"," executed immediately before ",[42,1144,1145],{},"gtag('config', ...)",". Baking ",[42,1148,1149],{},"gtag.js"," straight into prerendered HTML creates a subtle hygiene risk: spinning up a local container (",[42,1152,1153],{},"http://127.0.0.1:3002/",") for visual QA or repeatedly inspecting production pages could pollute live analytics.",[16,1156,1157],{},"The inline bootstrap script eliminates that risk via two upfront checks:",[1159,1160,1161,1199],"ul",{},[699,1162,1163,1166,1167,23,1170,23,1173,23,1176,1179,1180,23,1183,1186,1187,1190,1191,1194,1195,1198],{},[20,1164,1165],{},"Automatic Local & Private-Host Suppression:"," Requests served from ",[42,1168,1169],{},"localhost",[42,1171,1172],{},"127.0.0.1",[42,1174,1175],{},"0.0.0.0",[42,1177,1178],{},"::1",", or any ",[42,1181,1182],{},".localhost",[42,1184,1185],{},".local",", or ",[42,1188,1189],{},".internal"," hostname immediately set ",[42,1192,1193],{},"window['ga-disable-G-XXXXXXXXXX'] = true"," before ",[42,1196,1197],{},"gtag('config')"," fires.",[699,1200,1201,1208,1209,1211,1212,1214,1215,1218,1219,1222,1223,1226],{},[20,1202,1203,1204,1207],{},"Persistent Operator Opt-Out (",[42,1205,1206],{},"?internal=1","):"," When running QA on the live domain (",[42,1210,36],{},"), visiting once with ",[42,1213,1206],{}," persists ",[42,1216,1217],{},"inmokang_internal_traffic = '1'"," in ",[42,1220,1221],{},"localStorage",", excluding all subsequent sessions from that browser. Passing ",[42,1224,1225],{},"?internal=0"," clears the flag on demand.",[16,1228,1229,1230,1232],{},"This gives us the best of both worlds: raw prerendered HTML always contains a deterministically verifiable ",[42,1231,1149],{}," tag, while local smoke tests and operator QA visits never contaminate production GA4 metrics.",[81,1234],{},[84,1236,1238,1239,1241],{"id":1237},"_4-fix-architecture-2-multi-stage-docker-arg-plumbing-dual-ci-html-smoke-gates","4. Fix Architecture 2: Multi-Stage Docker ",[42,1240,710],{}," Plumbing & Dual CI HTML Smoke Gates",[16,1243,1244,1245,1247,1248,1250,1251,1253,1254,120,1256,1258,1259,120,1265,674],{},"Updating ",[42,1246,142],{}," to emit ",[42,1249,673],{}," scripts only solves half the problem if the build pipeline never passes those values into the ",[42,1252,559],{}," stage. To close the loop end to end, we updated both ",[42,1255,70],{},[42,1257,634],{}," with ",[20,1260,1261,1262,1264],{},"build-time ",[42,1263,710],{}," plumbing",[20,1266,1267],{},"dual CI HTML smoke gates",[16,1269,1270,1271,1273,1274,120,1276,1278,1279,1282,1283,1285,1286,1289],{},"In ",[42,1272,70],{},", declaring ",[42,1275,710],{},[42,1277,74],{}," immediately above ",[42,1280,1281],{},"RUN npm run build"," exposes the public analytics identifiers to the Nitro prerenderer, while mirroring the ",[42,1284,74],{}," defaults in the ",[42,1287,1288],{},"node:20-slim"," runner stage keeps dynamic SSR fallback paths consistent.",[183,1291,1295],{"className":1292,"code":1293,"language":1294,"meta":188,"style":188},"language-dockerfile shiki shiki-themes github-light github-dark","# Dockerfile (Condensed & masked)\nFROM node:20 AS builder\nWORKDIR /app\nCOPY package*.json ./\nRUN npm install\nCOPY . .\n\nARG NUXT_PUBLIC_GTAG_ID=G-XXXXXXXXXX\nENV NUXT_PUBLIC_GTAG_ID=${NUXT_PUBLIC_GTAG_ID}\nARG NUXT_PUBLIC_CLARITY_ID=YOUR_CLARITY_ID\nENV NUXT_PUBLIC_CLARITY_ID=${NUXT_PUBLIC_CLARITY_ID}\n\nRUN npm run build\n\nFROM node:20-slim\nWORKDIR /app\nENV NUXT_PUBLIC_GTAG_ID=G-XXXXXXXXXX\nENV NUXT_PUBLIC_CLARITY_ID=YOUR_CLARITY_ID\nCOPY --from=builder /app/.output ./.output\nEXPOSE 3000\nCMD [\"node\", \"./.output/server/index.mjs\"]\n","dockerfile",[42,1296,1297,1302,1307,1312,1317,1322,1327,1331,1336,1341,1346,1351,1355,1360,1364,1369,1373,1378,1383,1388,1393],{"__ignoreMap":188},[192,1298,1299],{"class":194,"line":195},[192,1300,1301],{},"# Dockerfile (Condensed & masked)\n",[192,1303,1304],{"class":194,"line":202},[192,1305,1306],{},"FROM node:20 AS builder\n",[192,1308,1309],{"class":194,"line":224},[192,1310,1311],{},"WORKDIR /app\n",[192,1313,1314],{"class":194,"line":230},[192,1315,1316],{},"COPY package*.json ./\n",[192,1318,1319],{"class":194,"line":245},[192,1320,1321],{},"RUN npm install\n",[192,1323,1324],{"class":194,"line":251},[192,1325,1326],{},"COPY . .\n",[192,1328,1329],{"class":194,"line":261},[192,1330,227],{"emptyLinePlaceholder":6},[192,1332,1333],{"class":194,"line":269},[192,1334,1335],{},"ARG NUXT_PUBLIC_GTAG_ID=G-XXXXXXXXXX\n",[192,1337,1338],{"class":194,"line":275},[192,1339,1340],{},"ENV NUXT_PUBLIC_GTAG_ID=${NUXT_PUBLIC_GTAG_ID}\n",[192,1342,1343],{"class":194,"line":281},[192,1344,1345],{},"ARG NUXT_PUBLIC_CLARITY_ID=YOUR_CLARITY_ID\n",[192,1347,1348],{"class":194,"line":309},[192,1349,1350],{},"ENV NUXT_PUBLIC_CLARITY_ID=${NUXT_PUBLIC_CLARITY_ID}\n",[192,1352,1353],{"class":194,"line":315},[192,1354,227],{"emptyLinePlaceholder":6},[192,1356,1357],{"class":194,"line":333},[192,1358,1359],{},"RUN npm run build\n",[192,1361,1362],{"class":194,"line":347},[192,1363,227],{"emptyLinePlaceholder":6},[192,1365,1366],{"class":194,"line":363},[192,1367,1368],{},"FROM node:20-slim\n",[192,1370,1371],{"class":194,"line":369},[192,1372,1311],{},[192,1374,1375],{"class":194,"line":375},[192,1376,1377],{},"ENV NUXT_PUBLIC_GTAG_ID=G-XXXXXXXXXX\n",[192,1379,1380],{"class":194,"line":381},[192,1381,1382],{},"ENV NUXT_PUBLIC_CLARITY_ID=YOUR_CLARITY_ID\n",[192,1384,1385],{"class":194,"line":392},[192,1386,1387],{},"COPY --from=builder /app/.output ./.output\n",[192,1389,1390],{"class":194,"line":398},[192,1391,1392],{},"EXPOSE 3000\n",[192,1394,1395],{"class":194,"line":408},[192,1396,1397],{},"CMD [\"node\", \"./.output/server/index.mjs\"]\n",[16,1399,1270,1400,1402,1403,1405,1406,120,1409,674],{},[42,1401,634],{},", we wired those secrets into ",[42,1404,638],{}," and added body-level HTML assertions at two distinct checkpoints: ",[20,1407,1408],{},"Origin (Gate 1)",[20,1410,1411],{},"CDN Edge (Gate 2)",[183,1413,1417],{"className":1414,"code":1415,"language":1416,"meta":188,"style":188},"language-yaml shiki shiki-themes github-light github-dark","# .github/workflows/deploy.yml (Core smoke gates excerpt)\n      - name: Build and push Docker image\n        uses: docker/build-push-action@v5\n        with:\n          context: .\n          file: ./Dockerfile\n          push: true\n          build-args: |\n            NUXT_PUBLIC_GTAG_ID=${{ secrets.NUXT_PUBLIC_GTAG_ID || 'G-XXXXXXXXXX' }}\n            NUXT_PUBLIC_CLARITY_ID=${{ secrets.NUXT_PUBLIC_CLARITY_ID || 'YOUR_CLARITY_ID' }}\n\n      - name: Deploy to Server via SSH\n        uses: appleboy/ssh-action@v1.0.3\n        with:\n          # Run Gate 1 after container startup and HTTP 200 readiness\n          script: |\n            if ! curl -fsS http://127.0.0.1:3002/ | grep -q \"${{ secrets.NUXT_PUBLIC_GTAG_ID || 'G-XXXXXXXXXX' }}\"; then\n              echo \"ERROR: GA4 tag missing in local SSR HTML\"\n              exit 1\n            fi\n\n      - name: Purge Cloudflare Cache & Edge Warmup\n        run: |\n          # Run Gate 2 immediately after Cloudflare purge_everything and route warmup\n          GTAG_EXPECTED=\"${{ secrets.NUXT_PUBLIC_GTAG_ID || 'G-XXXXXXXXXX' }}\"\n          if ! curl -fsSL https://inmokang.com/ | grep -q \"$GTAG_EXPECTED\"; then\n            echo \"::error::GA4 tag (${GTAG_EXPECTED}) missing in live HTML.\"\n            exit 1\n          fi\n","yaml",[42,1418,1419,1424,1439,1449,1457,1467,1477,1487,1497,1502,1507,1511,1522,1531,1537,1542,1551,1556,1561,1566,1571,1575,1586,1595,1600,1605,1610,1615,1620],{"__ignoreMap":188},[192,1420,1421],{"class":194,"line":195},[192,1422,1423],{"class":198},"# .github/workflows/deploy.yml (Core smoke gates excerpt)\n",[192,1425,1426,1429,1433,1436],{"class":194,"line":202},[192,1427,1428],{"class":220},"      - ",[192,1430,1432],{"class":1431},"s9eBZ","name",[192,1434,1435],{"class":220},": ",[192,1437,1438],{"class":254},"Build and push Docker image\n",[192,1440,1441,1444,1446],{"class":194,"line":224},[192,1442,1443],{"class":1431},"        uses",[192,1445,1435],{"class":220},[192,1447,1448],{"class":254},"docker/build-push-action@v5\n",[192,1450,1451,1454],{"class":194,"line":230},[192,1452,1453],{"class":1431},"        with",[192,1455,1456],{"class":220},":\n",[192,1458,1459,1462,1464],{"class":194,"line":245},[192,1460,1461],{"class":1431},"          context",[192,1463,1435],{"class":220},[192,1465,1466],{"class":209},".\n",[192,1468,1469,1472,1474],{"class":194,"line":251},[192,1470,1471],{"class":1431},"          file",[192,1473,1435],{"class":220},[192,1475,1476],{"class":254},"./Dockerfile\n",[192,1478,1479,1482,1484],{"class":194,"line":261},[192,1480,1481],{"class":1431},"          push",[192,1483,1435],{"class":220},[192,1485,1486],{"class":209},"true\n",[192,1488,1489,1492,1494],{"class":194,"line":269},[192,1490,1491],{"class":1431},"          build-args",[192,1493,1435],{"class":220},[192,1495,1496],{"class":205},"|\n",[192,1498,1499],{"class":194,"line":275},[192,1500,1501],{"class":254},"            NUXT_PUBLIC_GTAG_ID=${{ secrets.NUXT_PUBLIC_GTAG_ID || 'G-XXXXXXXXXX' }}\n",[192,1503,1504],{"class":194,"line":281},[192,1505,1506],{"class":254},"            NUXT_PUBLIC_CLARITY_ID=${{ secrets.NUXT_PUBLIC_CLARITY_ID || 'YOUR_CLARITY_ID' }}\n",[192,1508,1509],{"class":194,"line":309},[192,1510,227],{"emptyLinePlaceholder":6},[192,1512,1513,1515,1517,1519],{"class":194,"line":315},[192,1514,1428],{"class":220},[192,1516,1432],{"class":1431},[192,1518,1435],{"class":220},[192,1520,1521],{"class":254},"Deploy to Server via SSH\n",[192,1523,1524,1526,1528],{"class":194,"line":333},[192,1525,1443],{"class":1431},[192,1527,1435],{"class":220},[192,1529,1530],{"class":254},"appleboy/ssh-action@v1.0.3\n",[192,1532,1533,1535],{"class":194,"line":347},[192,1534,1453],{"class":1431},[192,1536,1456],{"class":220},[192,1538,1539],{"class":194,"line":363},[192,1540,1541],{"class":198},"          # Run Gate 1 after container startup and HTTP 200 readiness\n",[192,1543,1544,1547,1549],{"class":194,"line":369},[192,1545,1546],{"class":1431},"          script",[192,1548,1435],{"class":220},[192,1550,1496],{"class":205},[192,1552,1553],{"class":194,"line":375},[192,1554,1555],{"class":254},"            if ! curl -fsS http://127.0.0.1:3002/ | grep -q \"${{ secrets.NUXT_PUBLIC_GTAG_ID || 'G-XXXXXXXXXX' }}\"; then\n",[192,1557,1558],{"class":194,"line":381},[192,1559,1560],{"class":254},"              echo \"ERROR: GA4 tag missing in local SSR HTML\"\n",[192,1562,1563],{"class":194,"line":392},[192,1564,1565],{"class":254},"              exit 1\n",[192,1567,1568],{"class":194,"line":398},[192,1569,1570],{"class":254},"            fi\n",[192,1572,1573],{"class":194,"line":408},[192,1574,227],{"emptyLinePlaceholder":6},[192,1576,1577,1579,1581,1583],{"class":194,"line":418},[192,1578,1428],{"class":220},[192,1580,1432],{"class":1431},[192,1582,1435],{"class":220},[192,1584,1585],{"class":254},"Purge Cloudflare Cache & Edge Warmup\n",[192,1587,1588,1591,1593],{"class":194,"line":424},[192,1589,1590],{"class":1431},"        run",[192,1592,1435],{"class":220},[192,1594,1496],{"class":205},[192,1596,1597],{"class":194,"line":429},[192,1598,1599],{"class":254},"          # Run Gate 2 immediately after Cloudflare purge_everything and route warmup\n",[192,1601,1602],{"class":194,"line":1060},[192,1603,1604],{"class":254},"          GTAG_EXPECTED=\"${{ secrets.NUXT_PUBLIC_GTAG_ID || 'G-XXXXXXXXXX' }}\"\n",[192,1606,1607],{"class":194,"line":1070},[192,1608,1609],{"class":254},"          if ! curl -fsSL https://inmokang.com/ | grep -q \"$GTAG_EXPECTED\"; then\n",[192,1611,1612],{"class":194,"line":1080},[192,1613,1614],{"class":254},"            echo \"::error::GA4 tag (${GTAG_EXPECTED}) missing in live HTML.\"\n",[192,1616,1617],{"class":194,"line":1085},[192,1618,1619],{"class":254},"            exit 1\n",[192,1621,1622],{"class":194,"line":1091},[192,1623,1624],{"class":254},"          fi\n",[16,1626,1627,1628,1631,1632,1635,1636,1638],{},"The deadliest flaw in our previous pipeline was the ",[20,1629,1630],{},"Silent Green Deploy",". A bare ",[42,1633,1634],{},"curl -fsS http://127.0.0.1:3002/ >/dev/null"," health check passes as long as the Node process stays alive and returns HTTP ",[42,1637,55],{},"—letting a build stripped of critical meta or analytics tags sail straight into the Cloudflare purge step and poison the global edge cache.",[16,1640,1641],{},"Separating the two gates isolates both the assertion scope and the blast radius on failure:",[472,1643,1644,1660],{},[475,1645,1646],{},[478,1647,1648,1651,1654,1657],{},[481,1649,1650],{"align":483},"Verification Gate",[481,1652,1653],{"align":483},"Execution Point & Target Endpoint",[481,1655,1656],{"align":483},"Assertion Condition",[481,1658,1659],{"align":483},"Blast-Radius Containment on Failure",[492,1661,1662,1690],{},[478,1663,1664,1669,1680,1687],{},[497,1665,1666],{"align":483},[20,1667,1668],{},"Gate 1 (Origin Gate)",[497,1670,1671,1672,23,1674,1677,1678,138],{"align":483},"Immediately after ",[42,1673,601],{},[20,1675,1676],{},"before"," Cloudflare purge (",[42,1679,1153],{},[497,1681,1682,1683,1686],{"align":483},"Presence of ",[42,1684,1685],{},"$GTAG_EXPECTED"," in the response HTML body",[497,1688,1689],{"align":483},"Aborts deployment before CDN purge so existing edge-cached HTML continues shielding live traffic",[478,1691,1692,1697,1710,1715],{},[497,1693,1694],{"align":483},[20,1695,1696],{},"Gate 2 (Edge Gate)",[497,1698,1699,1700,1703,1704,1706,1707,138],{"align":483},"Immediately ",[20,1701,1702],{},"after"," Cloudflare ",[42,1705,469],{}," and warmup (",[42,1708,1709],{},"https://inmokang.com/",[497,1711,1682,1712,1714],{"align":483},[42,1713,1685],{}," in live HTTPS HTML",[497,1716,1717],{"align":483},"Detects edge propagation lag, reverse-proxy cache misconfigurations, or stale edge artifacts before marking CI green",[16,1719,1720,1721,1724,1725,1728,1729,1731],{},"Placing ",[20,1722,1723],{},"Gate 1"," ahead of the cache purge guarantees that a defective image aborts the workflow while the prior healthy edge cache still serves visitors. Requiring ",[20,1726,1727],{},"Gate 2"," against ",[42,1730,1709],{}," after warmup closes the last mile by verifying that origin and CDN edge actually agree before the deploy finishes.",[16,1733,1734,1735,1737,1738,1741,1742,1745,1746,1748,1749,1751],{},"As an added benefit, even when ",[42,1736,630],{}," uses registry layer caching (",[42,1739,1740],{},"cache-from"," / ",[42,1743,1744],{},"cache-to","), positioning ",[42,1747,626],{}," directly above ",[42,1750,1281],{}," guarantees BuildKit automatically invalidates the build layer whenever a secret changes and rebakes every static HTML file with the updated identifier.",[81,1753],{},[84,1755,1757],{"id":1756},"wrapping-up-keeping-speed-optimizations-from-creating-telemetry-blind-spots","Wrapping Up: Keeping Speed Optimizations from Creating Telemetry Blind Spots",[16,1759,1760,1761,1763],{},"Dynamic font subsetting, Nuxt 4 static prerendering, and Cloudflare ",[42,1762,534],{}," edge caching deliver dramatic gains in perceived load speed. Without closing the build-time versus runtime gap across both application code and CI/CD, however, it is remarkably easy to ship the fastest version of a site right alongside zero telemetry.",[696,1765,1766,1786,1804,1816],{},[699,1767,1768,1774,1775,721,1777,1779,1780,1782,1783,1785],{},[20,1769,1770,1771,1773],{},"Reclassify ",[42,1772,759],{}," as build-time dependencies when enabling prerendering:"," Once static HTML is baked at build time, public client identifiers must flow through multi-stage ",[42,1776,70],{},[42,1778,710],{}," declarations and CI ",[42,1781,638],{},", not just runtime ",[42,1784,548],{}," flags.",[699,1787,1788,1794,1795,1797,1798,120,1801,1803],{},[20,1789,1790,1791,1793],{},"Emit critical analytics tags deterministically in static ",[42,1792,673],{},":"," Prefer direct ",[42,1796,805],{}," output over hydration-only client plugins, paired with an inline ",[42,1799,1800],{},"ga-disable-*",[42,1802,1206],{}," guard so both automated verification and traffic hygiene stay clean.",[699,1805,1806,1811,1812,1815],{},[20,1807,1808,1809,1793],{},"Assert on HTML body content, never just HTTP ",[42,1810,55],{}," Status-code-only checks cannot catch silent regressions; enforce content assertions like ",[42,1813,1814],{},"grep -q \"$GTAG_EXPECTED\""," directly in the pipeline.",[699,1817,1818,1821,1822,1824,1825,1828,1829,863],{},[20,1819,1820],{},"Bracket CDN cache purges with dual origin/edge smoke gates:"," Never invoke ",[42,1823,469],{}," until Gate 1 passes on local origin (",[42,1826,1827],{},"127.0.0.1:3002","), and never mark a release green until Gate 2 confirms the live HTTPS edge response (",[42,1830,1709],{},[1832,1833,1834],"style",{},"html pre.shiki code .sJ8bj, html code.shiki .sJ8bj{--shiki-default:#6A737D;--shiki-dark:#6A737D}html pre.shiki code .szBVR, html code.shiki .szBVR{--shiki-default:#D73A49;--shiki-dark:#F97583}html pre.shiki code .sj4cs, html code.shiki .sj4cs{--shiki-default:#005CC5;--shiki-dark:#79B8FF}html pre.shiki code .sScJk, html code.shiki .sScJk{--shiki-default:#6F42C1;--shiki-dark:#B392F0}html pre.shiki code .sVt8B, html code.shiki .sVt8B{--shiki-default:#24292E;--shiki-dark:#E1E4E8}html pre.shiki code .sZZnC, html code.shiki .sZZnC{--shiki-default:#032F62;--shiki-dark:#9ECBFF}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);}html pre.shiki code .s9eBZ, html code.shiki .s9eBZ{--shiki-default:#22863A;--shiki-dark:#85E89D}",{"title":188,"searchDepth":202,"depth":202,"links":1836},[1837,1838,1839,1841,1843],{"id":86,"depth":202,"text":87},{"id":583,"depth":202,"text":584},{"id":774,"depth":202,"text":1840},"3. Fix Architecture 1: Deterministic SSR \u003Chead> Injection & Internal-Traffic Guard",{"id":1237,"depth":202,"text":1842},"4. Fix Architecture 2: Multi-Stage Docker ARG Plumbing & Dual CI HTML Smoke Gates",{"id":1756,"depth":202,"text":1757},"Nuxt 4 Prerendering · Docker Build Env · Dual CI Smoke Gate","tech","/images/content-images/blog/20261125-Nuxt-Prerender-Docker-Build-Env-CI-Smoke-Gate/20261125-Nuxt-Prerender-Docker-Build-Env-CI-Smoke-Gate001.jpg","Swiss editorial technical cover on a matte-black canvas illustrating Nuxt 4 static prerendering migration, Docker build-time ARG/ENV injection, SSR head internal-traffic guards, and dual CI smoke gates","2026-11-25","Post-mortem of a zero-session GA4 outage after Nuxt 4 prerendering and Cloudflare edge caching, fixed via Docker ARG injection and dual CI smoke gates.","md",null,{},false,"/en/blog/20261125-nuxt-prerender-docker-build-env-ci-smoke-gate",{"title":5,"description":1849},"published","en/blog/20261125-Nuxt-Prerender-Docker-Build-Env-CI-Smoke-Gate",[1859,1860,1861,1862,1863],"Nuxt 4","Docker","GitHub Actions","Cloudflare","Troubleshooting","JxijPH3TKk-aE5qHglykd5BRjK1gYGAhrWq7GaObEsI","/blog/20261125-nuxt-prerender-docker-build-env-ci-smoke-gate",[1867,1871],{"title":1868,"path":1869,"stem":1870,"date":1848,"status":1856,"noindex":1853,"children":-1},"Aspect-Ratio-Preserving Justified Web Gallery, 5-Slot Lightbox & Normalized EXIF Sample Feed","/en/blog/20261125-justified-photo-gallery-lightbox-exif-feed-architecture","en/blog/20261125-Justified-Photo-Gallery-Lightbox-EXIF-Feed-Architecture",{"title":1872,"path":1873,"stem":1874,"date":1875,"status":1856,"noindex":1853,"children":-1},"Hybrid Search Across 34,050 Photos & Book Plates with a 0ms Progressive Lightbox","/en/blog/20261129-hybrid-photo-search-zero-ms-lightbox","en/blog/20261129-Hybrid-Photo-Search-Zero-Ms-Lightbox","2026-11-29",1796290674318]