[{"data":1,"prerenderedAt":2172},["ShallowReactive",2],{"page:\u002Fchoosing-the-right-static-site-generator-for-production\u002Fnextjs-static-export-for-content-sites\u002Foptimizing-images-in-nextjs-static-export":3,"all-docs-nav":1630},{"id":4,"title":5,"body":6,"breadcrumb":1606,"dateModified":1615,"datePublished":1615,"description":1616,"extension":1617,"faq":1618,"meta":1623,"navigation":1624,"path":1625,"seo":1626,"slug":12,"stem":1627,"type":1628,"__hash__":1629},"content\u002Fchoosing-the-right-static-site-generator-for-production\u002Fnextjs-static-export-for-content-sites\u002Foptimizing-images-in-nextjs-static-export\u002Findex.md","Optimizing Images in Next.js Static Export",{"type":7,"value":8,"toc":1586},"minimark",[9,13,33,42,47,66,74,125,143,147,165,531,718,773,792,956,960,963,1031,1049,1053,1056,1161,1279,1283,1313,1371,1385,1389,1426,1430,1450,1454,1498,1502,1508,1512,1517,1520,1524,1527,1531,1534,1538,1541,1545,1582],[10,11,5],"h1",{"id":12},"optimizing-images-in-nextjs-static-export",[14,15,16,20,21,24,25,28,29,32],"p",{},[17,18,19],"code",{},"next\u002Fimage"," is one of Next.js's best features on a server: it resizes, re-encodes and caches images on demand, generating exactly the width and format each browser needs. Turn on ",[17,22,23],{},"output: 'export'"," for a static site and it stops working. The default loader depends on the Next.js server's ",[17,26,27],{},"\u002F_next\u002Fimage"," endpoint, which does not exist in a folder of static files, and the build fails with an error suggesting ",[17,30,31],{},"images.unoptimized: true",". Many teams accept that suggestion and ship original images at every size.",[14,34,35,36,41],{},"This guide compares three ways to get responsive, modern-format images back in a static export — build-time generation, a custom loader for an image CDN, and doing nothing — on a 600-post Next.js blog, measuring bytes and LCP. It is part of ",[37,38,40],"a",{"href":39},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fnextjs-static-export-for-content-sites\u002F","Next.js Static Export for Content Sites",".",[43,44,46],"h2",{"id":45},"prerequisites","Prerequisites",[48,49,50,60,63],"ul",{},[51,52,53,54,56,57,41],"li",{},"A Next.js 14 or 15 site with ",[17,55,23],{}," in ",[17,58,59],{},"next.config.js",[51,61,62],{},"Images stored in the repository or in an object store you control.",[51,64,65],{},"Lighthouse or WebPageTest to measure LCP and image bytes before and after.",[43,67,69,70,73],{"id":68},"option-0-unoptimized-true-the-baseline","Option 0: ",[17,71,72],{},"unoptimized: true"," (the Baseline)",[75,76,81],"pre",{"className":77,"code":78,"language":79,"meta":80,"style":80},"language-js shiki shiki-themes github-light github-dark","\u002F\u002F next.config.js\nmodule.exports = { output: 'export', images: { unoptimized: true } };\n","js","",[17,82,83,92],{"__ignoreMap":80},[84,85,88],"span",{"class":86,"line":87},"line",1,[84,89,91],{"class":90},"sJ8bj","\u002F\u002F next.config.js\n",[84,93,95,99,102,105,109,112,116,119,122],{"class":86,"line":94},2,[84,96,98],{"class":97},"sj4cs","module",[84,100,41],{"class":101},"sVt8B",[84,103,104],{"class":97},"exports",[84,106,108],{"class":107},"szBVR"," =",[84,110,111],{"class":101}," { output: ",[84,113,115],{"class":114},"sZZnC","'export'",[84,117,118],{"class":101},", images: { unoptimized: ",[84,120,121],{"class":97},"true",[84,123,124],{"class":101}," } };\n",[14,126,127,130,131,134,135,138,139,142],{},[17,128,129],{},"\u003CImage>"," still renders ",[17,132,133],{},"width",", ",[17,136,137],{},"height"," and lazy loading, which prevents layout shift and defers offscreen images. But ",[17,140,141],{},"srcset"," contains only the original, so a phone downloads the same 2400-pixel JPEG as a 4K monitor. On the blog, the median post hero was 780 KB.",[43,144,146],{"id":145},"option-1-generate-variants-at-build-time","Option 1: Generate Variants at Build Time",[14,148,149,150,152,153,156,157,160,161,164],{},"Generate a fixed set of widths and formats for every image during the build, and point ",[17,151,129],{}," at them with a loader that picks the right file. The ",[17,154,155],{},"next-export-optimize-images"," package automates this; the underlying approach is a ",[17,158,159],{},"sharp"," script run after ",[17,162,163],{},"next build",":",[75,166,168],{"className":77,"code":167,"language":79,"meta":80,"style":80},"\u002F\u002F scripts\u002Foptimize-images.mjs — runs after `next build`\nimport sharp from 'sharp';\nimport { globSync, mkdirSync } from 'node:fs';\nconst WIDTHS = [640, 960, 1280, 1920];\nfor (const src of globSync('public\u002Fimages\u002F**\u002F*.{jpg,jpeg,png}')) {\n  const name = src.replace(\u002F^public\\\u002Fimages\\\u002F\u002F, '').replace(\u002F\\.\\w+$\u002F, '');\n  for (const w of WIDTHS) for (const fmt of ['avif', 'webp']) {\n    const out = `out\u002F_img\u002F${name}-${w}.${fmt}`;\n    mkdirSync(out.replace(\u002F\\\u002F[^\u002F]+$\u002F, ''), { recursive: true });\n    await sharp(src).resize({ width: w, withoutEnlargement: true })\n      [fmt]({ quality: fmt === 'avif' ? 50 : 72 }).toFile(out);\n  }\n}\n",[17,169,170,175,192,207,242,272,344,388,422,463,486,519,525],{"__ignoreMap":80},[84,171,172],{"class":86,"line":87},[84,173,174],{"class":90},"\u002F\u002F scripts\u002Foptimize-images.mjs — runs after `next build`\n",[84,176,177,180,183,186,189],{"class":86,"line":94},[84,178,179],{"class":107},"import",[84,181,182],{"class":101}," sharp ",[84,184,185],{"class":107},"from",[84,187,188],{"class":114}," 'sharp'",[84,190,191],{"class":101},";\n",[84,193,195,197,200,202,205],{"class":86,"line":194},3,[84,196,179],{"class":107},[84,198,199],{"class":101}," { globSync, mkdirSync } ",[84,201,185],{"class":107},[84,203,204],{"class":114}," 'node:fs'",[84,206,191],{"class":101},[84,208,210,213,216,218,221,224,226,229,231,234,236,239],{"class":86,"line":209},4,[84,211,212],{"class":107},"const",[84,214,215],{"class":97}," WIDTHS",[84,217,108],{"class":107},[84,219,220],{"class":101}," [",[84,222,223],{"class":97},"640",[84,225,134],{"class":101},[84,227,228],{"class":97},"960",[84,230,134],{"class":101},[84,232,233],{"class":97},"1280",[84,235,134],{"class":101},[84,237,238],{"class":97},"1920",[84,240,241],{"class":101},"];\n",[84,243,245,248,251,253,256,259,263,266,269],{"class":86,"line":244},5,[84,246,247],{"class":107},"for",[84,249,250],{"class":101}," (",[84,252,212],{"class":107},[84,254,255],{"class":97}," src",[84,257,258],{"class":107}," of",[84,260,262],{"class":261},"sScJk"," globSync",[84,264,265],{"class":101},"(",[84,267,268],{"class":114},"'public\u002Fimages\u002F**\u002F*.{jpg,jpeg,png}'",[84,270,271],{"class":101},")) {\n",[84,273,275,278,281,283,286,289,291,294,297,301,305,308,310,312,314,317,320,322,324,326,329,332,335,337,339,341],{"class":86,"line":274},6,[84,276,277],{"class":107},"  const",[84,279,280],{"class":97}," name",[84,282,108],{"class":107},[84,284,285],{"class":101}," src.",[84,287,288],{"class":261},"replace",[84,290,265],{"class":101},[84,292,293],{"class":114},"\u002F",[84,295,296],{"class":107},"^",[84,298,300],{"class":299},"sA_wV","public",[84,302,304],{"class":303},"snhLl","\\\u002F",[84,306,307],{"class":299},"images",[84,309,304],{"class":303},[84,311,293],{"class":114},[84,313,134],{"class":101},[84,315,316],{"class":114},"''",[84,318,319],{"class":101},").",[84,321,288],{"class":261},[84,323,265],{"class":101},[84,325,293],{"class":114},[84,327,328],{"class":303},"\\.",[84,330,331],{"class":97},"\\w",[84,333,334],{"class":107},"+$",[84,336,293],{"class":114},[84,338,134],{"class":101},[84,340,316],{"class":114},[84,342,343],{"class":101},");\n",[84,345,347,350,352,354,357,359,361,364,366,368,370,373,375,377,380,382,385],{"class":86,"line":346},7,[84,348,349],{"class":107},"  for",[84,351,250],{"class":101},[84,353,212],{"class":107},[84,355,356],{"class":97}," w",[84,358,258],{"class":107},[84,360,215],{"class":97},[84,362,363],{"class":101},") ",[84,365,247],{"class":107},[84,367,250],{"class":101},[84,369,212],{"class":107},[84,371,372],{"class":97}," fmt",[84,374,258],{"class":107},[84,376,220],{"class":101},[84,378,379],{"class":114},"'avif'",[84,381,134],{"class":101},[84,383,384],{"class":114},"'webp'",[84,386,387],{"class":101},"]) {\n",[84,389,391,394,397,399,402,405,408,411,414,417,420],{"class":86,"line":390},8,[84,392,393],{"class":107},"    const",[84,395,396],{"class":97}," out",[84,398,108],{"class":107},[84,400,401],{"class":114}," `out\u002F_img\u002F${",[84,403,404],{"class":101},"name",[84,406,407],{"class":114},"}-${",[84,409,410],{"class":101},"w",[84,412,413],{"class":114},"}.${",[84,415,416],{"class":101},"fmt",[84,418,419],{"class":114},"}`",[84,421,191],{"class":101},[84,423,425,428,431,433,435,437,439,442,444,447,449,451,453,455,458,460],{"class":86,"line":424},9,[84,426,427],{"class":261},"    mkdirSync",[84,429,430],{"class":101},"(out.",[84,432,288],{"class":261},[84,434,265],{"class":101},[84,436,293],{"class":114},[84,438,304],{"class":303},[84,440,441],{"class":97},"[",[84,443,296],{"class":107},[84,445,446],{"class":97},"\u002F]",[84,448,334],{"class":107},[84,450,293],{"class":114},[84,452,134],{"class":101},[84,454,316],{"class":114},[84,456,457],{"class":101},"), { recursive: ",[84,459,121],{"class":97},[84,461,462],{"class":101}," });\n",[84,464,466,469,472,475,478,481,483],{"class":86,"line":465},10,[84,467,468],{"class":107},"    await",[84,470,471],{"class":261}," sharp",[84,473,474],{"class":101},"(src).",[84,476,477],{"class":261},"resize",[84,479,480],{"class":101},"({ width: w, withoutEnlargement: ",[84,482,121],{"class":97},[84,484,485],{"class":101}," })\n",[84,487,489,492,495,498,501,504,507,510,513,516],{"class":86,"line":488},11,[84,490,491],{"class":101},"      [fmt]({ quality: fmt ",[84,493,494],{"class":107},"===",[84,496,497],{"class":114}," 'avif'",[84,499,500],{"class":107}," ?",[84,502,503],{"class":97}," 50",[84,505,506],{"class":107}," :",[84,508,509],{"class":97}," 72",[84,511,512],{"class":101}," }).",[84,514,515],{"class":261},"toFile",[84,517,518],{"class":101},"(out);\n",[84,520,522],{"class":86,"line":521},12,[84,523,524],{"class":101},"  }\n",[84,526,528],{"class":86,"line":527},13,[84,529,530],{"class":101},"}\n",[75,532,534],{"className":77,"code":533,"language":79,"meta":80,"style":80},"\u002F\u002F image-loader.js — referenced from next.config.js images.loaderFile\nconst WIDTHS = [640, 960, 1280, 1920];\nexport default function loader({ src, width }) {\n  const w = WIDTHS.find((x) => x >= width) ?? WIDTHS.at(-1);\n  return `\u002F_img\u002F${src.replace(\u002F^\\\u002Fimages\\\u002F\u002F, '').replace(\u002F\\.\\w+$\u002F, '')}-${w}.webp`;\n}\n",[17,535,536,541,567,595,650,714],{"__ignoreMap":80},[84,537,538],{"class":86,"line":87},[84,539,540],{"class":90},"\u002F\u002F image-loader.js — referenced from next.config.js images.loaderFile\n",[84,542,543,545,547,549,551,553,555,557,559,561,563,565],{"class":86,"line":94},[84,544,212],{"class":107},[84,546,215],{"class":97},[84,548,108],{"class":107},[84,550,220],{"class":101},[84,552,223],{"class":97},[84,554,134],{"class":101},[84,556,228],{"class":97},[84,558,134],{"class":101},[84,560,233],{"class":97},[84,562,134],{"class":101},[84,564,238],{"class":97},[84,566,241],{"class":101},[84,568,569,572,575,578,581,584,588,590,592],{"class":86,"line":194},[84,570,571],{"class":107},"export",[84,573,574],{"class":107}," default",[84,576,577],{"class":107}," function",[84,579,580],{"class":261}," loader",[84,582,583],{"class":101},"({ ",[84,585,587],{"class":586},"s4XuR","src",[84,589,134],{"class":101},[84,591,133],{"class":586},[84,593,594],{"class":101}," }) {\n",[84,596,597,599,601,603,605,607,610,613,616,618,621,624,627,630,633,635,637,640,642,645,648],{"class":86,"line":209},[84,598,277],{"class":107},[84,600,356],{"class":97},[84,602,108],{"class":107},[84,604,215],{"class":97},[84,606,41],{"class":101},[84,608,609],{"class":261},"find",[84,611,612],{"class":101},"((",[84,614,615],{"class":586},"x",[84,617,363],{"class":101},[84,619,620],{"class":107},"=>",[84,622,623],{"class":101}," x ",[84,625,626],{"class":107},">=",[84,628,629],{"class":101}," width) ",[84,631,632],{"class":107},"??",[84,634,215],{"class":97},[84,636,41],{"class":101},[84,638,639],{"class":261},"at",[84,641,265],{"class":101},[84,643,644],{"class":107},"-",[84,646,647],{"class":97},"1",[84,649,343],{"class":101},[84,651,652,655,658,660,662,664,666,668,670,672,674,676,678,680,682,684,686,688,690,692,694,696,698,700,702,705,707,709,712],{"class":86,"line":244},[84,653,654],{"class":107},"  return",[84,656,657],{"class":114}," `\u002F_img\u002F${",[84,659,587],{"class":101},[84,661,41],{"class":114},[84,663,288],{"class":261},[84,665,265],{"class":114},[84,667,293],{"class":114},[84,669,296],{"class":107},[84,671,304],{"class":303},[84,673,307],{"class":299},[84,675,304],{"class":303},[84,677,293],{"class":114},[84,679,134],{"class":114},[84,681,316],{"class":114},[84,683,319],{"class":114},[84,685,288],{"class":261},[84,687,265],{"class":114},[84,689,293],{"class":114},[84,691,328],{"class":303},[84,693,331],{"class":97},[84,695,334],{"class":107},[84,697,293],{"class":114},[84,699,134],{"class":114},[84,701,316],{"class":114},[84,703,704],{"class":114},")",[84,706,407],{"class":114},[84,708,410],{"class":101},[84,710,711],{"class":114},"}.webp`",[84,713,191],{"class":101},[84,715,716],{"class":86,"line":274},[84,717,530],{"class":101},[75,719,721],{"className":77,"code":720,"language":79,"meta":80,"style":80},"\u002F\u002F next.config.js\nmodule.exports = { output: 'export', images: { loader: 'custom', loaderFile: '.\u002Fimage-loader.js', deviceSizes: [640, 960, 1280, 1920] } };\n",[17,722,723,727],{"__ignoreMap":80},[84,724,725],{"class":86,"line":87},[84,726,91],{"class":90},[84,728,729,731,733,735,737,739,741,744,747,750,753,756,758,760,762,764,766,768,770],{"class":86,"line":94},[84,730,98],{"class":97},[84,732,41],{"class":101},[84,734,104],{"class":97},[84,736,108],{"class":107},[84,738,111],{"class":101},[84,740,115],{"class":114},[84,742,743],{"class":101},", images: { loader: ",[84,745,746],{"class":114},"'custom'",[84,748,749],{"class":101},", loaderFile: ",[84,751,752],{"class":114},"'.\u002Fimage-loader.js'",[84,754,755],{"class":101},", deviceSizes: [",[84,757,223],{"class":97},[84,759,134],{"class":101},[84,761,228],{"class":97},[84,763,134],{"class":101},[84,765,233],{"class":97},[84,767,134],{"class":101},[84,769,238],{"class":97},[84,771,772],{"class":101},"] } };\n",[14,774,775,776,779,780,782,783,787,788,791],{},"The loader emits WebP; for AVIF with WebP fallback, render a ",[17,777,778],{},"\u003Cpicture>"," in a small wrapper component around ",[17,781,129],{},", as covered in ",[37,784,786],{"href":785},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fimage-optimization-pipelines-in-astro\u002Fserving-avif-with-fallbacks-on-static-sites\u002F","Serving AVIF with Fallbacks on Static Sites",". Cache ",[17,789,790],{},"out\u002F_img"," between CI runs keyed by a hash of the source images, or the step reprocesses everything on every build.",[793,794,795,952],"figure",{},[796,797,804,805,804,809,804,813,804,820,804,938],"svg",{"viewBox":798,"role":799,"ariaLabelledBy":800,"xmlns":803},"0 0 760 280","img",[801,802],"nxi-opts-title","nxi-opts-desc","http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg","\n  ",[806,807,808],"title",{"id":801},"Three image strategies for a static export",[810,811,812],"desc",{"id":802},"Three paths from a source image to the browser. Unoptimised: the original file is copied and served at every size. Build-time: a sharp script writes four widths in two formats into the export, and a custom loader picks the right one. Image CDN: the export references a CDN URL with width and format parameters, and the CDN transforms and caches on first request.",[814,815],"rect",{"x":816,"y":816,"width":817,"height":818,"fill":819},"0","760","280","#ffffff",[821,822,824,825,824,833,824,843,824,848,824,854,824,864,824,870,824,876,824,880,824,884,824,888,824,893,824,898,824,900,824,904,824,906,824,909,824,934,804],"g",{"style":823},"font-family:system-ui, sans-serif;font-size:12px","\n    ",[826,827,832],"text",{"x":828,"y":829,"fill":830,"style":831},"380","28","#1f2937","font-size:16px;font-weight:700;text-anchor:middle","Where resizing happens in each option",[814,834],{"x":835,"y":836,"width":837,"height":838,"rx":839,"fill":840,"stroke":841,"style":842},"20","104","130","60","10","#f8fafc","#d9e2ef","stroke-width:1.5px",[826,844,847],{"x":845,"y":837,"fill":830,"style":846},"85","font-weight:700;text-anchor:middle","hero.jpg",[826,849,853],{"x":845,"y":850,"fill":851,"style":852},"148","#556071","font-size:11px;text-anchor:middle","2400 px, 1.1 MB",[814,855],{"x":856,"y":857,"width":858,"height":859,"rx":860,"fill":861,"opacity":862,"stroke":863,"style":842},"200","50","220","44","8","#ff595e","0.14","#d83b41",[826,865,869],{"x":866,"y":867,"fill":830,"style":868},"310","77","text-anchor:middle","0 · copy original",[814,871],{"x":856,"y":872,"width":858,"height":859,"rx":860,"fill":873,"opacity":874,"stroke":875,"style":842},"112","#8ac926","0.18","#5a8a16",[826,877,879],{"x":866,"y":878,"fill":830,"style":868},"139","1 · sharp at build: 4 widths × 2",[814,881],{"x":856,"y":882,"width":858,"height":859,"rx":860,"fill":883,"opacity":862,"stroke":883,"style":842},"174","#1982c4",[826,885,887],{"x":866,"y":886,"fill":830,"style":868},"201","2 · loader → image CDN URL",[814,889],{"x":890,"y":857,"width":891,"height":859,"rx":860,"fill":840,"stroke":841,"style":892},"470","270","stroke-width:1px",[826,894,897],{"x":895,"y":867,"fill":896,"style":868},"605","#b32b30","every device gets 1.1 MB",[814,899],{"x":890,"y":872,"width":891,"height":859,"rx":860,"fill":840,"stroke":841,"style":892},[826,901,903],{"x":895,"y":878,"fill":902,"style":868},"#3f6410","phone gets 640 px WebP, 58 KB",[814,905],{"x":890,"y":882,"width":891,"height":859,"rx":860,"fill":840,"stroke":841,"style":892},[826,907,908],{"x":895,"y":886,"fill":902,"style":868},"phone gets exact width AVIF, 41 KB",[821,910,913,914,913,919,913,922,913,925,913,928,913,931,824],{"stroke":851,"fill":911,"style":912},"none","stroke-width:2px","\n      ",[915,916],"path",{"d":917,"style":918},"M152 124 L196 76","marker-end:url(#nxi-arrow)",[915,920],{"d":921,"style":918},"M152 134 L196 134",[915,923],{"d":924,"style":918},"M152 144 L196 192",[915,926],{"d":927,"style":918},"M422 72 L466 72",[915,929],{"d":930,"style":918},"M422 134 L466 134",[915,932],{"d":933,"style":918},"M422 196 L466 196",[826,935,937],{"x":828,"y":936,"fill":851,"style":852},"256","Transfer sizes for a 390 px-wide phone at DPR 2, median post hero",[939,940,824,941,804],"defs",{},[942,943,913,949,824],"marker",{"id":944,"viewBox":945,"refX":860,"refY":946,"markerWidth":947,"markerHeight":947,"orient":948},"nxi-arrow","0 0 10 10","5","7","auto-start-reverse",[915,950],{"d":951,"fill":851},"M0 0 L10 5 L0 10 z",[953,954,955],"figcaption",{},"Build-time generation moves the work into CI; the CDN option moves it to first request at the edge.",[43,957,959],{"id":958},"option-2-a-custom-loader-for-an-image-cdn","Option 2: A Custom Loader for an Image CDN",[14,961,962],{},"If images already live on, or can be served through, an image CDN — Cloudflare Images or Image Resizing, imgix, Cloudinary, or a self-hosted imgproxy — a loader that builds CDN URLs is the smallest change:",[75,964,966],{"className":77,"code":965,"language":79,"meta":80,"style":80},"\u002F\u002F image-loader.js (Cloudflare Image Resizing)\nexport default function loader({ src, width, quality }) {\n  return `https:\u002F\u002Fimages.example.com\u002Fcdn-cgi\u002Fimage\u002Fwidth=${width},quality=${quality ?? 75},format=auto${src}`;\n}\n",[17,967,968,973,998,1027],{"__ignoreMap":80},[84,969,970],{"class":86,"line":87},[84,971,972],{"class":90},"\u002F\u002F image-loader.js (Cloudflare Image Resizing)\n",[84,974,975,977,979,981,983,985,987,989,991,993,996],{"class":86,"line":94},[84,976,571],{"class":107},[84,978,574],{"class":107},[84,980,577],{"class":107},[84,982,580],{"class":261},[84,984,583],{"class":101},[84,986,587],{"class":586},[84,988,134],{"class":101},[84,990,133],{"class":586},[84,992,134],{"class":101},[84,994,995],{"class":586},"quality",[84,997,594],{"class":101},[84,999,1000,1002,1005,1007,1010,1012,1015,1018,1021,1023,1025],{"class":86,"line":194},[84,1001,654],{"class":107},[84,1003,1004],{"class":114}," `https:\u002F\u002Fimages.example.com\u002Fcdn-cgi\u002Fimage\u002Fwidth=${",[84,1006,133],{"class":101},[84,1008,1009],{"class":114},"},quality=${",[84,1011,995],{"class":101},[84,1013,1014],{"class":107}," ??",[84,1016,1017],{"class":97}," 75",[84,1019,1020],{"class":114},"},format=auto${",[84,1022,587],{"class":101},[84,1024,419],{"class":114},[84,1026,191],{"class":101},[84,1028,1029],{"class":86,"line":209},[84,1030,530],{"class":101},[14,1032,1033,1036,1037,1040,1041,1044,1045,41],{},[17,1034,1035],{},"format=auto"," serves AVIF or WebP by the browser's ",[17,1038,1039],{},"Accept"," header, and every width in ",[17,1042,1043],{},"deviceSizes"," is available without pre-generation. There is no build step and no storage for variants, at the cost of a per-transformation fee and a dependency on the CDN at request time. Setup of such a pipeline is covered in ",[37,1046,1048],{"href":1047},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fimage-optimization-pipelines-in-astro\u002Fbuilding-an-image-cdn-pipeline-for-static-sites\u002F","Building an Image CDN Pipeline for Static Sites",[43,1050,1052],{"id":1051},"measured-impact","Measured Impact",[14,1054,1055],{},"The same 600-post blog, Lighthouse 12 mobile preset, median of five runs on three post templates; build times on GitHub Actions.",[1057,1058,1059,1078],"table",{},[1060,1061,1062],"thead",{},[1063,1064,1065,1069,1072,1075],"tr",{},[1066,1067,1068],"th",{},"Measure",[1066,1070,1071],{},"unoptimized",[1066,1073,1074],{},"Build-time variants",[1066,1076,1077],{},"Image CDN loader",[1079,1080,1081,1096,1110,1124,1136,1149],"tbody",{},[1063,1082,1083,1087,1090,1093],{},[1084,1085,1086],"td",{},"Median hero transfer (mobile)",[1084,1088,1089],{},"780 KB",[1084,1091,1092],{},"64 KB",[1084,1094,1095],{},"48 KB",[1063,1097,1098,1101,1104,1107],{},[1084,1099,1100],{},"Image bytes per post page",[1084,1102,1103],{},"1.62 MB",[1084,1105,1106],{},"214 KB",[1084,1108,1109],{},"176 KB",[1063,1111,1112,1115,1118,1121],{},[1084,1113,1114],{},"Lab LCP",[1084,1116,1117],{},"3.1 s",[1084,1119,1120],{},"1.5 s",[1084,1122,1123],{},"1.4 s",[1063,1125,1126,1129,1131,1134],{},[1084,1127,1128],{},"Build time added",[1084,1130,816],{},[1084,1132,1133],{},"4 min 10 s cold \u002F 12 s warm",[1084,1135,816],{},[1063,1137,1138,1141,1144,1147],{},[1084,1139,1140],{},"Output size",[1084,1142,1143],{},"410 MB",[1084,1145,1146],{},"1.3 GB",[1084,1148,1143],{},[1063,1150,1151,1154,1156,1158],{},[1084,1152,1153],{},"Monthly cost at 900k views",[1084,1155,816],{},[1084,1157,816],{},[1084,1159,1160],{},"~9 USD transformations",[793,1162,1163,1276],{},[796,1164,804,1169,804,1172,804,1175,804,1177],{"viewBox":1165,"role":799,"ariaLabelledBy":1166,"xmlns":803},"0 0 760 270",[1167,1168],"nxi-lcp-title","nxi-lcp-desc",[806,1170,1171],{"id":1167},"Image bytes and LCP by strategy",[810,1173,1174],{"id":1168},"Two groups of bars. Image bytes per post page: 1.62 megabytes unoptimised, 214 kilobytes with build-time variants, 176 kilobytes with a CDN loader. Lab LCP: 3.1 seconds, 1.5 seconds and 1.4 seconds.",[814,1176],{"x":816,"y":816,"width":817,"height":891,"fill":819},[821,1178,824,1179,824,1182,824,1187,824,1190,824,1195,824,1200,824,1204,824,1208,824,1214,824,1218,824,1222,824,1226,824,1231,824,1236,824,1241,824,1245,824,1250,824,1255,824,1259,824,1263,824,1266,824,1270,824,1272,804],{"style":823},[826,1180,1181],{"x":828,"y":829,"fill":830,"style":831},"Unoptimised vs build-time vs CDN loader",[826,1183,1186],{"x":1184,"y":1185,"fill":830,"style":846},"190","58","image KB per post",[86,1188],{"x1":857,"y1":858,"x2":1189,"y2":858,"stroke":851,"style":842},"330",[814,1191],{"x":1192,"y":1192,"width":838,"height":1193,"fill":861,"opacity":1194,"stroke":863,"style":892},"70","150","0.28",[826,1196,1199],{"x":1197,"y":1198,"fill":830,"style":846},"100","64","1,620",[814,1201],{"x":1202,"y":856,"width":838,"height":835,"fill":873,"opacity":1203,"stroke":875,"style":892},"160","0.4",[826,1205,1207],{"x":1184,"y":1206,"fill":830,"style":846},"194","214",[814,1209],{"x":1210,"y":1211,"width":838,"height":1212,"fill":883,"opacity":1213,"stroke":883,"style":892},"250","204","16","0.3",[826,1215,1217],{"x":818,"y":1216,"fill":830,"style":846},"198","176",[826,1219,1221],{"x":1220,"y":1185,"fill":830,"style":846},"570","lab LCP (s)",[86,1223],{"x1":1224,"y1":858,"x2":1225,"y2":858,"stroke":851,"style":842},"430","710",[814,1227],{"x":1228,"y":1229,"width":838,"height":1230,"fill":861,"opacity":1194,"stroke":863,"style":892},"450","80","140",[826,1232,1235],{"x":1233,"y":1234,"fill":830,"style":846},"480","74","3.1",[814,1237],{"x":1238,"y":1239,"width":838,"height":1240,"fill":873,"opacity":1203,"stroke":875,"style":892},"540","152","68",[826,1242,1244],{"x":1220,"y":1243,"fill":830,"style":846},"146","1.5",[814,1246],{"x":1247,"y":1248,"width":838,"height":1249,"fill":883,"opacity":1213,"stroke":883,"style":892},"630","157","63",[826,1251,1254],{"x":1252,"y":1253,"fill":830,"style":846},"660","151","1.4",[814,1256],{"x":856,"y":1257,"width":1258,"height":1258,"fill":861,"opacity":1194,"stroke":863,"style":892},"240","12",[826,1260,1071],{"x":1261,"y":1210,"fill":851,"style":1262},"218","font-size:11px",[814,1264],{"x":1265,"y":1257,"width":1258,"height":1258,"fill":873,"opacity":1203,"stroke":875,"style":892},"320",[826,1267,1269],{"x":1268,"y":1210,"fill":851,"style":1262},"338","build-time",[814,1271],{"x":1224,"y":1257,"width":1258,"height":1258,"fill":883,"opacity":1213,"stroke":883,"style":892},[826,1273,1275],{"x":1274,"y":1210,"fill":851,"style":1262},"448","CDN loader",[953,1277,1278],{},"Either real option removes seven eighths of the image bytes; the choice between them is about where you want the work and the cost.",[43,1280,1282],{"id":1281},"the-lcp-image-specifically","The LCP Image Specifically",[14,1284,1285,1286,1289,1290,1292,1293,1296,1297,1300,1301,1303,1304,1307,1308,1312],{},"Whichever option, the hero image needs two extra attributes: ",[17,1287,1288],{},"priority"," on ",[17,1291,129],{}," (which emits ",[17,1294,1295],{},"fetchpriority=\"high\""," and a preload in Next.js 14+) and an accurate ",[17,1298,1299],{},"sizes",". Without ",[17,1302,1299],{},", the browser assumes the image is full viewport width and picks a larger file than needed; on the blog's two-column layout, adding ",[17,1305,1306],{},"sizes=\"(min-width: 1024px) 720px, 100vw\""," cut the desktop hero from the 1920 variant to the 960 variant. The effect of priority hints is measured in ",[37,1309,1311],{"href":1310},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Flargest-contentful-paint-optimization-for-static-sites\u002Foptimizing-lcp-on-astro-with-priority-hints\u002F","Optimizing LCP on Astro with Priority Hints",", and applies equally to Next.js.",[793,1314,1315,1368],{},[796,1316,804,1321,804,1324,804,1327,804,1329],{"viewBox":1317,"role":799,"ariaLabelledBy":1318,"xmlns":803},"0 0 760 240",[1319,1320],"nxi-sizes-title","nxi-sizes-desc",[806,1322,1323],{"id":1319},"Effect of an accurate sizes attribute on the desktop hero",[810,1325,1326],{"id":1320},"On a 1440 pixel desktop viewport at DPR 1, without sizes the browser assumes the image fills the viewport and picks the 1920 pixel variant at 186 kilobytes. With sizes set to 720 pixels on wide screens, it picks the 960 pixel variant at 71 kilobytes, although the image occupies the same space on screen.",[814,1328],{"x":816,"y":816,"width":817,"height":1257,"fill":819},[821,1330,824,1331,824,1334,824,1340,824,1346,824,1351,824,1355,824,1360,824,1365,804],{"style":823},[826,1332,1333],{"x":828,"y":829,"fill":830,"style":831},"Same slot on screen, different file chosen",[826,1335,1339],{"x":1336,"y":1337,"fill":830,"style":1338},"30","84","font-weight:700","No sizes",[814,1341],{"x":1342,"y":1198,"width":1233,"height":1343,"rx":1344,"fill":861,"opacity":1345,"stroke":863,"style":892},"170","34","4","0.25",[826,1347,1350],{"x":1348,"y":1349,"fill":830,"style":868},"410","86","browser assumes 100vw → 1920 w · 186 KB",[826,1352,1354],{"x":1336,"y":1353,"fill":830,"style":1338},"154","sizes set",[814,1356],{"x":1342,"y":1357,"width":1358,"height":1343,"rx":1344,"fill":873,"opacity":1359,"stroke":875,"style":892},"134","184","0.35",[826,1361,1364],{"x":1362,"y":1363,"fill":830,"style":868},"262","156","720 px slot → 960 w · 71 KB",[826,1366,1367],{"x":828,"y":1207,"fill":851,"style":852},"1440 px viewport, DPR 1, two-column post layout",[953,1369,1370],{},"`sizes` tells the browser the slot before layout exists; without it, srcset selection guesses high.",[14,1372,1373,1374,1377,1378,1381,1382,1384],{},"Check the choice in DevTools: the Network panel shows which variant each ",[17,1375,1376],{},"\u003Cimg>"," requested, and ",[17,1379,1380],{},"currentSrc"," on the element in the console confirms it. A quick audit of every template at three viewport widths caught two other layouts — a card grid and an author avatar — where missing ",[17,1383,1299],{}," had been fetching images four times larger than displayed.",[43,1386,1388],{"id":1387},"images-inside-markdown-and-mdx","Images Inside Markdown and MDX",[14,1390,1391,1392,1395,1396,1398,1399,1402,1403,1405,1406,1408,1409,1411,1412,1415,1416,1419,1420,1422,1423,1425],{},"Hero images rendered by templates are the easy case. Images inside post bodies — Markdown ",[17,1393,1394],{},"![alt](path)"," syntax — bypass ",[17,1397,129],{}," entirely unless you map them. With MDX, pass a ",[17,1400,1401],{},"components"," object mapping ",[17,1404,799],{}," to a wrapper that renders ",[17,1407,129],{}," with the loader, reading dimensions from a manifest generated at build time (the ",[17,1410,159],{}," script can emit ",[17,1413,1414],{},"images.json"," with each source's width and height). Without dimensions, body images cause layout shift as they load, which undoes much of the benefit; the manifest approach supplies them without writers adding sizes by hand. On the blog, 3,900 body images went through this mapping, and CLS on long posts fell from 0.09 to 0.01 alongside the byte savings. For plain Markdown rendered with ",[17,1417,1418],{},"remark",", a rehype plugin can rewrite ",[17,1421,1376],{}," elements to ",[17,1424,778],{}," with the generated variants in the same way.",[43,1427,1429],{"id":1428},"choosing-between-them","Choosing Between Them",[14,1431,1432,1433,1435,1436,1438,1439,1441,1442,134,1444,1446,1447,41],{},"Build-time variants suit sites whose images live in the repository and change slowly: no runtime dependency, no per-request cost, and deploy-time certainty that every variant exists. The price is build time and output size, both manageable with a persistent cache. The CDN loader suits sites with many or frequently changing images, images from a CMS, or a CDN already in place: zero build cost and exact sizes, at a small usage fee. ",[17,1434,1071],{}," is acceptable only for a handful of small, pre-optimised images — and then it is worth asking whether ",[17,1437,129],{}," is needed at all versus a plain ",[17,1440,1376],{}," with ",[17,1443,133],{},[17,1445,137],{}," and ",[17,1448,1449],{},"loading=\"lazy\"",[43,1451,1453],{"id":1452},"pitfalls-rollback","Pitfalls & Rollback",[48,1455,1456,1466,1477,1483,1489],{},[51,1457,1458,1465],{},[1459,1460,1461,1462,1464],"strong",{},"Accepting ",[17,1463,72],{}," permanently."," It fixes the build error by giving up responsive images. Treat it as a temporary step.",[51,1467,1468,1473,1474,1476],{},[1459,1469,1470,1471,41],{},"Missing ",[17,1472,1299],{}," Without it, ",[17,1475,141],{}," selection assumes full-width images and wastes bytes.",[51,1478,1479,1482],{},[1459,1480,1481],{},"Regenerating every image on every build."," Cache the output keyed by source hashes.",[51,1484,1485,1488],{},[1459,1486,1487],{},"Loader widths that do not exist."," A build-time loader must only return widths that were generated; clamp to the generated list.",[51,1490,1491,1494,1495,1497],{},[1459,1492,1493],{},"Rollback:"," the loader is one config line; setting ",[17,1496,72],{}," again restores the previous behaviour immediately.",[43,1499,1501],{"id":1500},"conclusion","Conclusion",[14,1503,1504,1505,1507],{},"A Next.js static export loses on-demand image optimisation, and the build's suggested fix — ",[17,1506,72],{}," — quietly ships original images to every device. Generating variants at build time or pointing a custom loader at an image CDN restores responsive, modern-format images. On a 600-post blog either approach cut image bytes per page by about 87% and lab LCP from 3.1 to about 1.5 seconds; pick build-time for repository images and zero runtime cost, the CDN for scale and flexibility.",[43,1509,1511],{"id":1510},"faq","FAQ",[1513,1514,1516],"h3",{"id":1515},"why-does-nextimage-fail-with-output-export","Why does next\u002Fimage fail with output export?",[14,1518,1519],{},"The default image loader resizes images on request through Next.js's image optimisation API, which needs a running server. A static export has no server, so the build errors unless you set images.unoptimized to true or configure a custom loader.",[1513,1521,1523],{"id":1522},"is-imagesunoptimized-acceptable","Is images.unoptimized acceptable?",[14,1525,1526],{},"Only for sites with few, already-optimised images. It serves the original file at every viewport size, so a 2400-pixel hero reaches phones at full size. On our blog it doubled image bytes compared with a proper responsive setup.",[1513,1528,1530],{"id":1529},"what-is-the-best-option-for-a-static-export","What is the best option for a static export?",[14,1532,1533],{},"For most content sites, generating responsive variants at build time with a script or a package such as next-export-optimize-images. If an image CDN is already in use, a custom loader pointing at it is simpler and handles any size on demand.",[1513,1535,1537],{"id":1536},"does-this-affect-lcp","Does this affect LCP?",[14,1539,1540],{},"Yes, often more than anything else on the page. Serving a right-sized AVIF or WebP instead of the original JPEG cut the hero image from 780 KB to 64 KB on mobile and moved lab LCP from 3.1 to 1.5 seconds in our tests.",[43,1542,1544],{"id":1543},"related","Related",[48,1546,1547,1556,1563,1568,1575],{},[51,1548,1549,1552,1553,1555],{},[1459,1550,1551],{},"Parent:"," ",[37,1554,40],{"href":39}," — the export model and its limits.",[51,1557,1558,1562],{},[37,1559,1561],{"href":1560},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fnextjs-static-export-for-content-sites\u002Fnextjs-app-router-static-export-limitations\u002F","Next.js App Router Static Export Limitations"," — the other features that change under export.",[51,1564,1565,1567],{},[37,1566,1048],{"href":1047}," — the CDN option in depth.",[51,1569,1570,1574],{},[37,1571,1573],{"href":1572},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Flargest-contentful-paint-optimization-for-static-sites\u002Freducing-lcp-from-hero-images-on-static-sites\u002F","Reducing LCP from Hero Images on Static Sites"," — the hero image beyond format and size.",[51,1576,1577,1581],{},[37,1578,1580],{"href":1579},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fnextjs-static-export-for-content-sites\u002Fnextjs-static-export-vs-astro-for-marketing-sites\u002F","Next.js Static Export vs Astro for Marketing Sites"," — where Astro's built-in images compare.",[1583,1584,1585],"style",{},"html pre.shiki code .sJ8bj, html code.shiki .sJ8bj{--shiki-default:#6A737D;--shiki-dark:#6A737D}html pre.shiki code .sj4cs, html code.shiki .sj4cs{--shiki-default:#005CC5;--shiki-dark:#79B8FF}html pre.shiki code .sVt8B, html code.shiki .sVt8B{--shiki-default:#24292E;--shiki-dark:#E1E4E8}html pre.shiki code .szBVR, html code.shiki .szBVR{--shiki-default:#D73A49;--shiki-dark:#F97583}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 .sScJk, html code.shiki .sScJk{--shiki-default:#6F42C1;--shiki-dark:#B392F0}html pre.shiki code .sA_wV, html code.shiki .sA_wV{--shiki-default:#032F62;--shiki-dark:#DBEDFF}html pre.shiki code .snhLl, html code.shiki .snhLl{--shiki-default:#22863A;--shiki-default-font-weight:bold;--shiki-dark:#85E89D;--shiki-dark-font-weight:bold}html pre.shiki code .s4XuR, html code.shiki .s4XuR{--shiki-default:#E36209;--shiki-dark:#FFAB70}",{"title":80,"searchDepth":94,"depth":94,"links":1587},[1588,1589,1591,1592,1593,1594,1595,1596,1597,1598,1599,1605],{"id":45,"depth":94,"text":46},{"id":68,"depth":94,"text":1590},"Option 0: unoptimized: true (the Baseline)",{"id":145,"depth":94,"text":146},{"id":958,"depth":94,"text":959},{"id":1051,"depth":94,"text":1052},{"id":1281,"depth":94,"text":1282},{"id":1387,"depth":94,"text":1388},{"id":1428,"depth":94,"text":1429},{"id":1452,"depth":94,"text":1453},{"id":1500,"depth":94,"text":1501},{"id":1510,"depth":94,"text":1511,"children":1600},[1601,1602,1603,1604],{"id":1515,"depth":194,"text":1516},{"id":1522,"depth":194,"text":1523},{"id":1529,"depth":194,"text":1530},{"id":1536,"depth":194,"text":1537},{"id":1543,"depth":94,"text":1544},[1607,1609,1612,1613],{"name":1608,"item":293},"Home",{"name":1610,"item":1611},"Choosing the Right Static Site Generator for Production","\u002Fchoosing-the-right-static-site-generator-for-production\u002F",{"name":40,"item":39},{"name":5,"item":1614},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fnextjs-static-export-for-content-sites\u002Foptimizing-images-in-nextjs-static-export\u002F","2026-09-18","next\u002Fimage cannot optimise at request time in a static export. Three ways to get responsive, modern-format images back — build-time, loader and CDN — measured.","md",[1619,1620,1621,1622],{"q":1516,"a":1519},{"q":1523,"a":1526},{"q":1530,"a":1533},{"q":1537,"a":1540},{},true,"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fnextjs-static-export-for-content-sites\u002Foptimizing-images-in-nextjs-static-export",{"title":5,"description":1616},"choosing-the-right-static-site-generator-for-production\u002Fnextjs-static-export-for-content-sites\u002Foptimizing-images-in-nextjs-static-export\u002Findex","article","LhSyZgMIkQh_JN0qtvn2eIVfNMKgDdnax33OoDuVE04",[1631,1634,1637,1640,1643,1646,1649,1652,1655,1658,1661,1664,1667,1670,1673,1676,1679,1682,1685,1688,1690,1693,1696,1699,1702,1705,1708,1711,1714,1717,1720,1723,1726,1729,1732,1735,1737,1740,1742,1745,1746,1749,1752,1755,1758,1761,1764,1767,1770,1773,1776,1779,1782,1785,1788,1791,1794,1797,1800,1803,1806,1809,1812,1815,1818,1821,1824,1827,1830,1833,1836,1839,1842,1845,1847,1850,1853,1856,1859,1862,1865,1868,1871,1874,1877,1880,1883,1886,1889,1892,1895,1898,1900,1902,1905,1908,1911,1914,1917,1920,1923,1926,1929,1932,1935,1938,1941,1944,1947,1950,1953,1956,1959,1962,1965,1968,1971,1974,1977,1980,1983,1986,1989,1992,1995,1998,2001,2004,2007,2010,2013,2016,2019,2022,2025,2028,2031,2034,2037,2040,2043,2046,2049,2052,2055,2058,2061,2064,2067,2070,2073,2076,2079,2082,2085,2088,2091,2094,2097,2100,2103,2106,2109,2112,2115,2118,2121,2124,2127,2130,2133,2136,2139,2142,2145,2148,2151,2154,2157,2160,2163,2166,2169],{"path":1632,"title":1633},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fastro-vs-eleventy-for-documentation-sites\u002Fastro-vs-eleventy-build-times-at-10000-pages","Astro vs Eleventy Build Times at 10,000 Pages",{"path":1635,"title":1636},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fastro-vs-eleventy-for-documentation-sites\u002Fchoosing-between-astro-and-eleventy-for-large-docs","Astro vs Eleventy for Large Docs (1000+ Pages)",{"path":1638,"title":1639},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fastro-vs-eleventy-for-documentation-sites\u002Fcontent-collections-vs-eleventy-data-cascade","Content Collections vs the Eleventy Data Cascade",{"path":1641,"title":1642},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fastro-vs-eleventy-for-documentation-sites","Astro vs Eleventy for Documentation Sites",{"path":1644,"title":1645},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fastro-vs-eleventy-for-documentation-sites\u002Fshortcodes-vs-components-for-docs-authors","Shortcodes vs Components for Docs Authors",{"path":1647,"title":1648},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fastro-vs-eleventy-for-documentation-sites\u002Fsidebar-navigation-in-astro-and-eleventy","Sidebar Navigation in Astro and Eleventy",{"path":1650,"title":1651},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fdocs-frameworks-docusaurus-starlight-vitepress\u002Fcustomizing-starlight-without-forking-the-theme","Customizing Starlight Without Forking the Theme",{"path":1653,"title":1654},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fdocs-frameworks-docusaurus-starlight-vitepress\u002Fdocusaurus-vs-starlight-for-product-documentation","Docusaurus vs Starlight for Product Documentation",{"path":1656,"title":1657},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fdocs-frameworks-docusaurus-starlight-vitepress","Docs Frameworks: Docusaurus, Starlight and VitePress",{"path":1659,"title":1660},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fdocs-frameworks-docusaurus-starlight-vitepress\u002Fmdx-vs-markdoc-for-docs-content","MDX vs Markdoc for Docs Content",{"path":1662,"title":1663},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fdocs-frameworks-docusaurus-starlight-vitepress\u002Fmigrating-from-mkdocs-to-starlight","Migrating from MkDocs to Starlight",{"path":1665,"title":1666},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fdocs-frameworks-docusaurus-starlight-vitepress\u002Fversioned-documentation-with-docusaurus","Versioned Documentation with Docusaurus",{"path":1668,"title":1669},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fdocs-frameworks-docusaurus-starlight-vitepress\u002Fvitepress-for-library-documentation","VitePress for Library Documentation",{"path":1671,"title":1672},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fhugo-build-times-for-large-repositories\u002Fhow-to-benchmark-hugo-vs-astro-build-speeds","How to Benchmark Hugo vs Astro Build Speeds",{"path":1674,"title":1675},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fhugo-build-times-for-large-repositories\u002Fhugo-partialcached-for-faster-builds","Hugo partialCached for Faster Builds",{"path":1677,"title":1678},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fhugo-build-times-for-large-repositories","Hugo Build Times for Large Repositories",{"path":1680,"title":1681},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fhugo-build-times-for-large-repositories\u002Fprofiling-hugo-templates-with-template-metrics","Profiling Hugo Templates With Template Metrics",{"path":1683,"title":1684},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fhugo-build-times-for-large-repositories\u002Freducing-hugo-memory-usage-on-ci-runners","Reducing Hugo Memory Usage on CI Runners",{"path":1686,"title":1687},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fhugo-build-times-for-large-repositories\u002Fspeeding-up-hugo-builds-with-render-hooks-and-caching","Speeding Up Hugo Builds with Render Hooks & Caching",{"path":1689,"title":1610},"\u002Fchoosing-the-right-static-site-generator-for-production",{"path":1691,"title":1692},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fjekyll-plugin-ecosystem\u002Feleventy-vs-jekyll-for-markdown-heavy-blogs","Eleventy vs Jekyll for Markdown-Heavy Blogs",{"path":1694,"title":1695},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fjekyll-plugin-ecosystem","Jekyll Plugin Ecosystem",{"path":1697,"title":1698},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fjekyll-plugin-ecosystem\u002Freplacing-jekyll-plugins-when-migrating-to-eleventy","Replacing Jekyll Plugins When Migrating to Eleventy",{"path":1700,"title":1701},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fjekyll-plugin-ecosystem\u002Frunning-jekyll-on-github-pages-without-plugins","Running Jekyll on GitHub Pages Without Plugins",{"path":1703,"title":1704},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fjekyll-plugin-ecosystem\u002Fspeeding-up-slow-jekyll-builds","Speeding Up Slow Jekyll Builds",{"path":1706,"title":1707},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fjekyll-plugin-ecosystem\u002Fupgrading-jekyll-and-ruby-versions-safely","Upgrading Jekyll and Ruby Versions Safely",{"path":1709,"title":1710},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fmigrating-between-static-site-generators\u002Fconverting-front-matter-at-scale-during-migration","Converting Front Matter at Scale During Migration",{"path":1712,"title":1713},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fmigrating-between-static-site-generators","Migrating Between Static Site Generators",{"path":1715,"title":1716},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fmigrating-between-static-site-generators\u002Fkeeping-redirects-working-after-an-ssg-migration","Keeping Redirects Working After an SSG Migration",{"path":1718,"title":1719},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fmigrating-between-static-site-generators\u002Fmigrating-a-docs-site-from-jekyll-to-hugo","Migrating a Docs Site From Jekyll to Hugo",{"path":1721,"title":1722},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fmigrating-between-static-site-generators\u002Fmigrating-from-gatsby-to-astro","Migrating from Gatsby to Astro",{"path":1724,"title":1725},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fmigrating-between-static-site-generators\u002Fmigrating-from-hugo-to-astro-without-breaking-urls","Migrating From Hugo to Astro Without Breaking URLs",{"path":1727,"title":1728},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fmigrating-between-static-site-generators\u002Fmigrating-wordpress-to-a-static-site-generator","Migrating WordPress to a Static Site Generator",{"path":1730,"title":1731},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fmigrating-between-static-site-generators\u002Fporting-shortcodes-and-includes-between-generators","Porting Shortcodes and Includes Between Generators",{"path":1733,"title":1734},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fnextjs-static-export-for-content-sites\u002Fhandling-dynamic-routes-in-nextjs-static-export","Handling Dynamic Routes in Next.js Static Export",{"path":1736,"title":40},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fnextjs-static-export-for-content-sites",{"path":1738,"title":1739},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fnextjs-static-export-for-content-sites\u002Fmigrating-from-gatsby-to-nextjs-static-export","Migrating from Gatsby to Next.js Static Export",{"path":1741,"title":1561},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fnextjs-static-export-for-content-sites\u002Fnextjs-app-router-static-export-limitations",{"path":1743,"title":1744},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fnextjs-static-export-for-content-sites\u002Fnextjs-static-export-vs-astro-for-marketing-sites","Next.js Static Export vs Astro for Marketing",{"path":1625,"title":5},{"path":1747,"title":1748},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fsearch-for-static-sites\u002Fadding-pagefind-to-an-astro-site","Adding Pagefind to an Astro Site",{"path":1750,"title":1751},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fsearch-for-static-sites\u002Fbuilding-a-lunr-index-at-build-time-in-eleventy","Building a Lunr Index at Build Time in Eleventy",{"path":1753,"title":1754},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fsearch-for-static-sites","Search for Static Sites",{"path":1756,"title":1757},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fsearch-for-static-sites\u002Findexing-hugo-sites-with-pagefind","Indexing Hugo Sites with Pagefind",{"path":1759,"title":1760},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fsearch-for-static-sites\u002Fmultilingual-search-on-static-sites","Multilingual Search on Static Sites",{"path":1762,"title":1763},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fsearch-for-static-sites\u002Fpagefind-vs-algolia-docsearch","Pagefind vs Algolia DocSearch",{"path":1765,"title":1766},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fsearch-for-static-sites\u002Fsearch-index-size-budgets-for-large-docs","Search Index Size Budgets for Large Docs",{"path":1768,"title":1769},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fssg-framework-selection-matrix\u002Fbest-ssg-for-technical-writers-without-coding-experience","Best SSG for Non-Developer Technical Writers",{"path":1771,"title":1772},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fssg-framework-selection-matrix\u002Fchoosing-an-ssg-for-api-reference-documentation","Choosing an SSG for API Reference Documentation",{"path":1774,"title":1775},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fssg-framework-selection-matrix\u002Fevaluating-ssg-accessibility-defaults","Evaluating SSG Accessibility Defaults",{"path":1777,"title":1778},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fssg-framework-selection-matrix","SSG Framework Selection Matrix",{"path":1780,"title":1781},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fssg-framework-selection-matrix\u002Fpicking-an-ssg-for-a-multi-language-documentation-site","Picking an SSG for a Multi-Language Docs Site",{"path":1783,"title":1784},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fssg-framework-selection-matrix\u002Fssg-selection-checklist-for-engineering-teams","SSG Selection Checklist for Engineering Teams",{"path":1786,"title":1787},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fssg-framework-selection-matrix\u002Ftotal-cost-of-ownership-for-static-site-generators","Total Cost of Ownership for Static Site Generators",{"path":1789,"title":1790},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fcdn-caching-rules-for-ssgs\u002Fcache-busting-with-content-hashed-filenames","Cache Busting with Content-Hashed Filenames",{"path":1792,"title":1793},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fcdn-caching-rules-for-ssgs","CDN Caching Rules for SSGs",{"path":1795,"title":1796},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fcdn-caching-rules-for-ssgs\u002Fpurging-the-cdn-cache-after-a-static-deploy","Purging the CDN Cache After a Static Deploy",{"path":1798,"title":1799},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fcdn-caching-rules-for-ssgs\u002Fsetting-cache-control-headers-on-cloudflare-pages","Cache-Control Headers on Cloudflare Pages",{"path":1801,"title":1802},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fcdn-caching-rules-for-ssgs\u002Fsetting-up-proper-cache-headers-on-netlify","Proper Cache Headers on Netlify for SSGs",{"path":1804,"title":1805},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fcdn-caching-rules-for-ssgs\u002Fstale-while-revalidate-for-static-html","Stale-While-Revalidate for Static HTML",{"path":1807,"title":1808},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fcumulative-layout-shift-fixes-for-static-sites\u002Feliminating-layout-shift-from-web-fonts","Eliminating Layout Shift From Web Fonts",{"path":1810,"title":1811},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fcumulative-layout-shift-fixes-for-static-sites\u002Ffixing-cls-from-cookie-banners","Fixing CLS from Cookie Banners",{"path":1813,"title":1814},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fcumulative-layout-shift-fixes-for-static-sites\u002Ffixing-cls-from-late-loading-embeds","Fixing CLS From Late-Loading Embeds",{"path":1816,"title":1817},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fcumulative-layout-shift-fixes-for-static-sites\u002Ffixing-cls-from-sticky-headers-and-anchor-links","Fixing CLS from Sticky Headers and Anchor Links",{"path":1819,"title":1820},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fcumulative-layout-shift-fixes-for-static-sites","Cumulative Layout Shift Fixes for Static Sites",{"path":1822,"title":1823},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fcumulative-layout-shift-fixes-for-static-sites\u002Fmeasuring-cls-in-the-field-with-web-vitals-js","Measuring CLS in the Field With web-vitals.js",{"path":1825,"title":1826},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fcumulative-layout-shift-fixes-for-static-sites\u002Freserving-space-for-images-and-embeds-to-stop-layout-shift","Reserving Space for Images and Embeds",{"path":1828,"title":1829},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Ffont-loading-strategies-for-static-sites\u002Ffont-display-optional-vs-swap","font-display: optional vs swap",{"path":1831,"title":1832},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Ffont-loading-strategies-for-static-sites","Font Loading Strategies for Static Sites",{"path":1834,"title":1835},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Ffont-loading-strategies-for-static-sites\u002Fmetric-matched-fallback-fonts-with-size-adjust","Metric-Matched Fallback Fonts with size-adjust",{"path":1837,"title":1838},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Ffont-loading-strategies-for-static-sites\u002Fpreloading-fonts-without-double-downloads","Preloading Fonts Without Double Downloads",{"path":1840,"title":1841},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Ffont-loading-strategies-for-static-sites\u002Fself-hosting-google-fonts-to-eliminate-layout-shift","Self-Host Google Fonts to Eliminate Layout Shift",{"path":1843,"title":1844},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Ffont-loading-strategies-for-static-sites\u002Fsubsetting-variable-fonts-for-faster-first-render","Subsetting Variable Fonts for Faster First Render",{"path":1846,"title":1048},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fimage-optimization-pipelines-in-astro\u002Fbuilding-an-image-cdn-pipeline-for-static-sites",{"path":1848,"title":1849},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fimage-optimization-pipelines-in-astro\u002Fgenerating-open-graph-images-at-build-time","Generating Open Graph Images at Build Time",{"path":1851,"title":1852},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fimage-optimization-pipelines-in-astro","Image Optimization Pipelines in Astro",{"path":1854,"title":1855},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fimage-optimization-pipelines-in-astro\u002Flazy-loading-images-without-hurting-lcp","Lazy-Loading Images Without Hurting LCP",{"path":1857,"title":1858},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fimage-optimization-pipelines-in-astro\u002Foptimizing-webp-images-in-hugo-without-plugins","Optimizing WebP Images in Hugo Without Plugins",{"path":1860,"title":1861},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fimage-optimization-pipelines-in-astro\u002Fresponsive-images-with-srcset-in-eleventy","Responsive Images with srcset in Eleventy",{"path":1863,"title":1864},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fimage-optimization-pipelines-in-astro\u002Fserving-avif-with-fallbacks-on-static-sites","Serving AVIF With Fallbacks on Static Sites",{"path":1866,"title":1867},"\u002Fperformance-optimization-core-web-vitals-for-ssgs","Core Web Vitals Optimization for SSGs",{"path":1869,"title":1870},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fjavascript-hydration-partial-rendering\u002Fastro-islands-vs-full-hydration-performance","Astro Islands vs Full Hydration Performance",{"path":1872,"title":1873},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fjavascript-hydration-partial-rendering\u002Fdeferring-hydration-with-client-visible-in-astro","Deferring Hydration with client:visible in Astro",{"path":1875,"title":1876},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fjavascript-hydration-partial-rendering\u002Fhow-to-reduce-bundle-size-in-eleventy-builds","How to Reduce Bundle Size in Eleventy Builds",{"path":1878,"title":1879},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fjavascript-hydration-partial-rendering","JavaScript Hydration & Partial Rendering",{"path":1881,"title":1882},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fjavascript-hydration-partial-rendering\u002Fmeasuring-inp-on-static-sites-with-real-user-monitoring","Measuring INP on Static Sites with RUM",{"path":1884,"title":1885},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fjavascript-hydration-partial-rendering\u002Freplacing-react-islands-with-web-components","Replacing React Islands with Web Components",{"path":1887,"title":1888},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Flargest-contentful-paint-optimization-for-static-sites\u002Feliminating-render-blocking-css-on-static-sites","Eliminating Render-Blocking CSS on Static Sites",{"path":1890,"title":1891},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Flargest-contentful-paint-optimization-for-static-sites\u002Ffixing-lcp-on-text-heavy-documentation-pages","Fixing LCP on Text-Heavy Documentation Pages",{"path":1893,"title":1894},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Flargest-contentful-paint-optimization-for-static-sites","Largest Contentful Paint Optimization for Static Sites",{"path":1896,"title":1897},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Flargest-contentful-paint-optimization-for-static-sites\u002Fmeasuring-lcp-subparts-with-devtools","Measuring LCP Subparts with DevTools",{"path":1899,"title":1311},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Flargest-contentful-paint-optimization-for-static-sites\u002Foptimizing-lcp-on-astro-with-priority-hints",{"path":1901,"title":1573},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Flargest-contentful-paint-optimization-for-static-sites\u002Freducing-lcp-from-hero-images-on-static-sites",{"path":1903,"title":1904},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fperformance-budgets-and-lighthouse-ci\u002Fcomparing-lab-and-field-data-with-crux","Comparing Lab and Field Data with CrUX",{"path":1906,"title":1907},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fperformance-budgets-and-lighthouse-ci","Performance Budgets and Lighthouse CI",{"path":1909,"title":1910},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fperformance-budgets-and-lighthouse-ci\u002Freducing-lighthouse-score-variance-in-ci","Reducing Lighthouse Score Variance in CI",{"path":1912,"title":1913},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fperformance-budgets-and-lighthouse-ci\u002Frunning-webpagetest-scripts-against-preview-deploys","Running WebPageTest Scripts Against Preview Deploys",{"path":1915,"title":1916},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fperformance-budgets-and-lighthouse-ci\u002Fsetting-up-lighthouse-ci-for-a-static-site","Setting Up Lighthouse CI for a Static Site",{"path":1918,"title":1919},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fperformance-budgets-and-lighthouse-ci\u002Ftracking-bundle-size-per-pull-request","Tracking Bundle Size per Pull Request",{"path":1921,"title":1922},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fperformance-budgets-and-lighthouse-ci\u002Fwriting-a-performance-budget-that-fails-builds","Writing a Performance Budget That Fails Builds",{"path":1924,"title":1925},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fresource-hints-and-navigation-speed\u002Fauditing-unused-preloads","Auditing Unused Preloads",{"path":1927,"title":1928},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fresource-hints-and-navigation-speed","Resource Hints and Navigation Speed",{"path":1930,"title":1931},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fresource-hints-and-navigation-speed\u002Finstant-navigation-with-speculation-rules","Instant Navigation with Speculation Rules",{"path":1933,"title":1934},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fresource-hints-and-navigation-speed\u002Fpreconnect-vs-dns-prefetch-on-static-sites","Preconnect vs DNS-Prefetch on Static Sites",{"path":1936,"title":1937},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fresource-hints-and-navigation-speed\u002Fprefetching-links-in-astro","Prefetching Links in Astro",{"path":1939,"title":1940},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fresource-hints-and-navigation-speed\u002Fview-transitions-on-multi-page-static-sites","View Transitions on Multi-Page Static Sites",{"path":1942,"title":1943},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fthird-party-script-performance-on-static-sites\u002Fauditing-third-party-scripts-with-lighthouse","Auditing Third-Party Scripts With Lighthouse",{"path":1945,"title":1946},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fthird-party-script-performance-on-static-sites","Third-Party Script Performance on Static Sites",{"path":1948,"title":1949},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fthird-party-script-performance-on-static-sites\u002Flazy-loading-youtube-embeds-on-static-sites","Lazy-Loading YouTube Embeds on Static Sites",{"path":1951,"title":1952},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fthird-party-script-performance-on-static-sites\u002Floading-google-tag-manager-without-hurting-inp","Loading Google Tag Manager Without Hurting INP",{"path":1954,"title":1955},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fthird-party-script-performance-on-static-sites\u002Frunning-third-party-scripts-in-a-web-worker-with-partytown","Running Third-Party Scripts in a Web Worker with Partytown",{"path":1957,"title":1958},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fthird-party-script-performance-on-static-sites\u002Fself-hosting-analytics-to-cut-third-party-requests","Self-Hosting Analytics to Cut Third-Party Requests",{"path":1960,"title":1961},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fcloudflare-pages-edge-caching-setup\u002Fautomating-eleventy-deployments-with-cloudflare-pages","Automating Eleventy Deployments on Cloudflare Pages",{"path":1963,"title":1964},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fcloudflare-pages-edge-caching-setup\u002Fconfiguring-redirects-on-cloudflare-pages","Configuring Redirects on Cloudflare Pages",{"path":1966,"title":1967},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fcloudflare-pages-edge-caching-setup\u002Fcustom-domains-and-tls-on-cloudflare-pages","Custom Domains and TLS on Cloudflare Pages",{"path":1969,"title":1970},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fcloudflare-pages-edge-caching-setup\u002Fdeploying-hugo-to-cloudflare-pages-and-workers","Deploying Hugo to Cloudflare Pages and Workers",{"path":1972,"title":1973},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fcloudflare-pages-edge-caching-setup","Cloudflare Pages Edge Caching Setup",{"path":1975,"title":1976},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fcloudflare-pages-edge-caching-setup\u002Fmigrating-from-cloudflare-pages-to-workers-static-assets","Migrating from Cloudflare Pages to Workers Static Assets",{"path":1978,"title":1979},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fcontent-workflows-for-documentation-teams\u002Fchecking-links-in-pull-requests","Checking Links in Pull Requests",{"path":1981,"title":1982},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fcontent-workflows-for-documentation-teams\u002Fdocs-as-code-review-workflow-for-writers","Docs-as-Code Review Workflow for Writers",{"path":1984,"title":1985},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fcontent-workflows-for-documentation-teams\u002Feditorial-checks-with-vale-in-ci","Editorial Checks with Vale in CI",{"path":1987,"title":1988},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fcontent-workflows-for-documentation-teams","Content Workflows for Documentation Teams",{"path":1990,"title":1991},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fcontent-workflows-for-documentation-teams\u002Fscheduling-content-publication-with-cron-triggered-builds","Scheduling Content Publication With Cron-Triggered Builds",{"path":1993,"title":1994},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fcontent-workflows-for-documentation-teams\u002Fwiring-a-headless-cms-to-a-static-build","Wiring a Headless CMS to a Static Build",{"path":1996,"title":1997},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fgithub-actions-for-automated-ssg-builds\u002Fbuilding-astro-sites-with-github-actions","Building Astro Sites with GitHub Actions",{"path":1999,"title":2000},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fgithub-actions-for-automated-ssg-builds\u002Fcaching-node-modules-in-github-actions-for-faster-ssg-builds","Caching node_modules in GitHub Actions",{"path":2002,"title":2003},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fgithub-actions-for-automated-ssg-builds\u002Fdeploying-to-github-pages-with-actions","Deploying to GitHub Pages with Actions",{"path":2005,"title":2006},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fgithub-actions-for-automated-ssg-builds\u002Fdeploying-to-multiple-environments-from-one-workflow","Deploying to Multiple Environments From One Workflow",{"path":2008,"title":2009},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fgithub-actions-for-automated-ssg-builds\u002Fhow-to-set-up-github-actions-for-hugo-deployments","GitHub Actions for Hugo Deployments",{"path":2011,"title":2012},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fgithub-actions-for-automated-ssg-builds","GitHub Actions for Automated SSG Builds",{"path":2014,"title":2015},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fgithub-actions-for-automated-ssg-builds\u002Fmatrix-builds-for-multi-site-monorepos","Matrix Builds for Multi-Site Monorepos",{"path":2017,"title":2018},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fincremental-builds-and-build-caching-for-ssgs\u002Fcaching-hugo-builds-in-github-actions","Caching Hugo Builds in GitHub Actions",{"path":2020,"title":2021},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fincremental-builds-and-build-caching-for-ssgs\u002Fenabling-incremental-builds-in-eleventy","Enabling Incremental Builds in Eleventy",{"path":2023,"title":2024},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fincremental-builds-and-build-caching-for-ssgs\u002Fincremental-builds-in-astro-with-the-content-layer","Incremental Builds in Astro with the Content Layer",{"path":2026,"title":2027},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fincremental-builds-and-build-caching-for-ssgs","Incremental Builds and Build Caching for SSGs",{"path":2029,"title":2030},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fincremental-builds-and-build-caching-for-ssgs\u002Fmeasuring-build-time-regressions-in-ci","Measuring Build-Time Regressions in CI",{"path":2032,"title":2033},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fincremental-builds-and-build-caching-for-ssgs\u002Fremote-caching-with-turborepo-for-ssg-monorepos","Remote Caching with Turborepo for SSG Monorepos",{"path":2035,"title":2036},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fincremental-builds-and-build-caching-for-ssgs\u002Fsharing-build-cache-across-ci-runners","Sharing Build Cache Across CI Runners",{"path":2038,"title":2039},"\u002Fproduction-ready-deployment-cicd-workflows","Production-Ready Deployment & CI\u002FCD for SSGs",{"path":2041,"title":2042},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fmonitoring-static-sites-in-production\u002Falerting-on-cache-hit-ratio-drops","Alerting on Cache Hit Ratio Drops",{"path":2044,"title":2045},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fmonitoring-static-sites-in-production\u002Fbuilding-a-core-web-vitals-dashboard-from-rum-data","Building a Core Web Vitals Dashboard from RUM Data",{"path":2047,"title":2048},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fmonitoring-static-sites-in-production\u002Fcrawling-for-broken-links-on-a-schedule","Crawling for Broken Links on a Schedule",{"path":2050,"title":2051},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fmonitoring-static-sites-in-production","Monitoring Static Sites in Production",{"path":2053,"title":2054},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fmonitoring-static-sites-in-production\u002Flogging-404s-at-the-edge","Logging 404s at the Edge",{"path":2056,"title":2057},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fmonitoring-static-sites-in-production\u002Fuptime-and-synthetic-checks-for-static-sites","Uptime and Synthetic Checks for Static Sites",{"path":2059,"title":2060},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fnetlify-vs-vercel-deployment-strategies\u002Fconfiguring-vercel-for-hugo-and-eleventy","Configuring Vercel for Hugo and Eleventy",{"path":2062,"title":2063},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fnetlify-vs-vercel-deployment-strategies","Netlify vs Vercel Deployment Strategies",{"path":2065,"title":2066},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fnetlify-vs-vercel-deployment-strategies\u002Fnetlify-build-hooks-for-content-updates","Netlify Build Hooks for Content Updates",{"path":2068,"title":2069},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fnetlify-vs-vercel-deployment-strategies\u002Fnetlify-redirects-and-rewrites-for-static-sites","Netlify Redirects and Rewrites for Static Sites",{"path":2071,"title":2072},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fnetlify-vs-vercel-deployment-strategies\u002Fsetting-up-deploy-previews-on-netlify-for-every-pull-request","Netlify Deploy Previews for Every Pull Request",{"path":2074,"title":2075},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fnetlify-vs-vercel-deployment-strategies\u002Fvercel-isr-vs-static-generation-for-ssgs","Vercel ISR vs Static Generation for SSGs",{"path":2077,"title":2078},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fpreview-environments-for-pull-requests\u002Fautomating-preview-deploy-pipelines-with-github-actions","Automating Preview Deploy Pipelines with GitHub Actions",{"path":2080,"title":2081},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fpreview-environments-for-pull-requests\u002Fcleaning-up-stale-preview-deployments","Cleaning Up Stale Preview Deployments",{"path":2083,"title":2084},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fpreview-environments-for-pull-requests","Preview Environments for Pull Requests",{"path":2086,"title":2087},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fpreview-environments-for-pull-requests\u002Fpassword-protecting-preview-deployments","Password-Protecting Preview Deployments",{"path":2089,"title":2090},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fpreview-environments-for-pull-requests\u002Fpreviewing-headless-cms-drafts","Previewing Headless CMS Drafts",{"path":2092,"title":2093},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fpreview-environments-for-pull-requests\u002Fvisual-regression-testing-on-preview-deploys","Visual Regression Testing on Preview Deploys",{"path":2095,"title":2096},"\u002Fproduction-ready-deployment-cicd-workflows\u002Frollbacks-and-deploy-safety-for-static-sites\u002Fatomic-deploys-vs-incremental-uploads","Atomic Deploys vs Incremental Uploads",{"path":2098,"title":2099},"\u002Fproduction-ready-deployment-cicd-workflows\u002Frollbacks-and-deploy-safety-for-static-sites\u002Fcanary-releases-for-static-sites","Canary Releases for Static Sites",{"path":2101,"title":2102},"\u002Fproduction-ready-deployment-cicd-workflows\u002Frollbacks-and-deploy-safety-for-static-sites\u002Ffeature-flags-on-static-sites","Feature Flags on Static Sites",{"path":2104,"title":2105},"\u002Fproduction-ready-deployment-cicd-workflows\u002Frollbacks-and-deploy-safety-for-static-sites","Rollbacks and Deploy Safety for Static Sites",{"path":2107,"title":2108},"\u002Fproduction-ready-deployment-cicd-workflows\u002Frollbacks-and-deploy-safety-for-static-sites\u002Frolling-back-a-bad-static-deploy-in-under-a-minute","Rolling Back a Bad Static Deploy in Under a Minute",{"path":2110,"title":2111},"\u002Fproduction-ready-deployment-cicd-workflows\u002Frollbacks-and-deploy-safety-for-static-sites\u002Frunning-smoke-tests-against-a-preview-url","Running Smoke Tests Against a Preview URL",{"path":2113,"title":2114},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fsecurity-headers-for-static-sites\u002Fauditing-npm-dependencies-in-ssg-pipelines","Auditing npm Dependencies in SSG Pipelines",{"path":2116,"title":2117},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fsecurity-headers-for-static-sites\u002Fenabling-hsts-and-preload-safely","Enabling HSTS and Preload Safely",{"path":2119,"title":2120},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fsecurity-headers-for-static-sites\u002Fhash-based-csp-for-inline-scripts-in-astro","Hash-Based CSP for Inline Scripts in Astro",{"path":2122,"title":2123},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fsecurity-headers-for-static-sites","Security Headers and Hardening for Static Sites",{"path":2125,"title":2126},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fsecurity-headers-for-static-sites\u002Fsecuring-deploy-credentials-with-github-oidc","Securing Deploy Credentials with GitHub OIDC",{"path":2128,"title":2129},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fsecurity-headers-for-static-sites\u002Fsubresource-integrity-for-third-party-assets","Subresource Integrity for Third-Party Assets",{"path":2131,"title":2132},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fsecurity-headers-for-static-sites\u002Fwriting-a-content-security-policy-for-a-static-site","Writing a Content Security Policy for a Static Site",{"path":2134,"title":2135},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fself-hosting-static-sites\u002Fclean-urls-and-trailing-slashes-on-s3","Clean URLs and Trailing Slashes on S3",{"path":2137,"title":2138},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fself-hosting-static-sites\u002Fcloudfront-functions-for-redirects","CloudFront Functions for Redirects",{"path":2140,"title":2141},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fself-hosting-static-sites\u002Fdeploying-a-static-site-to-s3-and-cloudfront","Deploying a Static Site to S3 and CloudFront",{"path":2143,"title":2144},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fself-hosting-static-sites","Self-Hosting Static Sites on S3, Nginx and Caddy",{"path":2146,"title":2147},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fself-hosting-static-sites\u002Fserving-a-static-site-with-caddy","Serving a Static Site with Caddy",{"path":2149,"title":2150},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fself-hosting-static-sites\u002Fserving-a-static-site-with-nginx","Serving a Static Site with Nginx",{"path":2152,"title":2153},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fself-hosting-static-sites\u002Fzero-downtime-deploys-with-symlink-swaps","Zero-Downtime Deploys with Symlink Swaps",{"path":2155,"title":2156},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fserverless-functions-for-static-sites\u002Fadding-a-contact-form-with-cloudflare-workers","Adding a Contact Form with Cloudflare Workers",{"path":2158,"title":2159},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fserverless-functions-for-static-sites\u002Fhandling-form-submissions-on-a-static-site","Handling Form Submissions on a Static Site",{"path":2161,"title":2162},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fserverless-functions-for-static-sites","Serverless Functions for Static Sites",{"path":2164,"title":2165},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fserverless-functions-for-static-sites\u002Fnetlify-functions-vs-cloudflare-workers","Netlify Functions vs Cloudflare Workers",{"path":2167,"title":2168},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fserverless-functions-for-static-sites\u002Fprotecting-a-static-site-behind-authentication","Protecting a Static Site Behind Authentication",{"path":2170,"title":2171},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fserverless-functions-for-static-sites\u002Fproxying-third-party-apis-from-an-edge-function","Proxying Third-Party APIs from an Edge Function",1789722848039]