[{"data":1,"prerenderedAt":2035},["ShallowReactive",2],{"page:\u002Fchoosing-the-right-static-site-generator-for-production\u002Fsearch-for-static-sites":3,"all-docs-nav":1500},{"id":4,"title":5,"body":6,"breadcrumb":1478,"dateModified":1484,"datePublished":1484,"description":1485,"extension":1486,"faq":1487,"meta":1493,"navigation":1494,"path":1495,"seo":1496,"slug":12,"stem":1497,"type":1498,"__hash__":1499},"content\u002Fchoosing-the-right-static-site-generator-for-production\u002Fsearch-for-static-sites\u002Findex.md","Search for Static Sites",{"type":7,"value":8,"toc":1456},"minimark",[9,13,22,36,39,226,231,242,248,254,264,305,309,312,390,497,504,508,511,514,587,594,693,697,704,898,906,910,913,921,1045,1049,1069,1079,1083,1086,1116,1130,1148,1154,1160,1164,1167,1182,1189,1193,1208,1211,1231,1235,1238,1300,1304,1339,1343,1360,1364,1369,1372,1376,1379,1383,1386,1390,1393,1397,1400,1404,1452],[10,11,5],"h1",{"id":12},"search-for-static-sites",[14,15,16,17,21],"p",{},"Search is the feature that most often makes teams doubt a static architecture. There is no database to query and no server to run it, so it feels like search must mean a third-party service. It does not. The dominant pattern for static sites is ",[18,19,20],"strong",{},"build-time indexing",": the build that renders your pages also produces a search index as static files, and the reader's browser runs queries locally against it. The alternative — a hosted service such as Algolia — is a deliberate choice for specific needs, not a requirement.",[14,23,24,25,30,31,35],{},"This topic sits inside ",[26,27,29],"a",{"href":28},"\u002Fchoosing-the-right-static-site-generator-for-production\u002F","Choosing the Right Static Site Generator for Production"," because search is frequently a deciding factor in framework choice: Starlight ships Pagefind, VitePress ships MiniSearch, Docusaurus defaults to Algolia, and Hugo, Eleventy and Jekyll ship nothing. The comparison of those defaults is in ",[26,32,34],{"href":33},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fdocs-frameworks-docusaurus-starlight-vitepress\u002F","Docs Frameworks: Docusaurus, Starlight and VitePress",".",[14,37,38],{},"All measurements below use three test corpora — 300 pages, 2,000 pages and 10,000 pages of documentation — built with each tool and queried from a Moto G Power-class device profile in Chrome DevTools with simulated fast 4G.",[40,41,42,222],"figure",{},[43,44,51,52,51,56,51,60,51,67,51,208],"svg",{"viewBox":45,"role":46,"ariaLabelledBy":47,"xmlns":50},"0 0 780 320","img",[48,49],"sss-arch-title","sss-arch-desc","http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg","\n  ",[53,54,55],"title",{"id":48},"Two architectures for static site search",[57,58,59],"desc",{"id":49},"On the left, build-time indexing: the build renders HTML and an index together, both are deployed to the CDN, and the browser downloads the index and queries it locally. On the right, hosted search: a crawler or CI job pushes records to a search service, and the browser sends every query to that service's API.",[61,62],"rect",{"x":63,"y":63,"width":64,"height":65,"fill":66},"0","780","320","#ffffff",[68,69,71,72,71,80,71,86,71,96,71,102,71,107,71,112,71,118,71,123,71,127,71,133,71,137,71,141,71,145,71,148,71,152,71,158,71,162,71,165,71,168,71,170,71,173,71,198,71,204,51],"g",{"style":70},"font-family:system-ui, sans-serif;font-size:12px","\n    ",[73,74,79],"text",{"x":75,"y":76,"fill":77,"style":78},"390","28","#1f2937","font-size:16px;font-weight:700;text-anchor:middle","Where the index lives decides everything else",[73,81,85],{"x":82,"y":83,"fill":77,"style":84},"190","60","font-size:13px;font-weight:700;text-anchor:middle","Build-time index",[61,87],{"x":88,"y":89,"width":90,"height":91,"rx":92,"fill":93,"opacity":94,"stroke":93,"style":95},"40","76","130","44","8","#6a4c93","0.14","stroke-width:1.5px",[73,97,101],{"x":98,"y":99,"fill":77,"style":100},"105","103","text-anchor:middle","SSG build",[61,103],{"x":104,"y":89,"width":90,"height":91,"rx":92,"fill":105,"stroke":106,"style":95},"210","#f8fafc","#d9e2ef",[73,108,111],{"x":109,"y":110,"fill":77,"style":100},"275","97","HTML + index",[73,113,117],{"x":109,"y":114,"fill":115,"style":116},"112","#556071","font-size:11px;text-anchor:middle","one artifact",[61,119],{"x":120,"y":121,"width":90,"height":91,"rx":92,"fill":122,"opacity":94,"stroke":122,"style":95},"125","160","#1982c4",[73,124,126],{"x":82,"y":125,"fill":77,"style":100},"187","CDN",[61,128],{"x":120,"y":129,"width":90,"height":91,"rx":92,"fill":130,"opacity":131,"stroke":132,"style":95},"240","#8ac926","0.18","#5a8a16",[73,134,136],{"x":82,"y":135,"fill":77,"style":100},"261","browser",[73,138,140],{"x":82,"y":139,"fill":115,"style":116},"276","queries locally",[73,142,144],{"x":143,"y":83,"fill":77,"style":84},"590","Hosted search",[61,146],{"x":147,"y":89,"width":90,"height":91,"rx":92,"fill":93,"opacity":94,"stroke":93,"style":95},"440",[73,149,151],{"x":150,"y":99,"fill":77,"style":100},"505","crawler \u002F CI push",[61,153],{"x":154,"y":89,"width":90,"height":91,"rx":92,"fill":155,"opacity":156,"stroke":157,"style":95},"610","#ffca3a","0.26","#a97b00",[73,159,161],{"x":160,"y":110,"fill":77,"style":100},"675","search service",[73,163,164],{"x":160,"y":114,"fill":115,"style":116},"index + API",[61,166],{"x":167,"y":129,"width":90,"height":91,"rx":92,"fill":130,"opacity":131,"stroke":132,"style":95},"525",[73,169,136],{"x":143,"y":135,"fill":77,"style":100},[73,171,172],{"x":143,"y":139,"fill":115,"style":116},"one request per query",[68,174,177,178,177,183,177,186,177,189,177,192,177,195,71],{"stroke":115,"fill":175,"style":176},"none","stroke-width:2px","\n      ",[179,180],"path",{"d":181,"style":182},"M172 98 L206 98","marker-end:url(#sss-arch-arrow)",[179,184],{"d":185,"style":182},"M260 122 L210 158",[179,187],{"d":188,"style":182},"M190 206 L190 236",[179,190],{"d":191,"style":182},"M572 98 L606 98",[179,193],{"d":194,"style":182},"M660 122 L610 236",[179,196],{"d":197,"style":182},"M570 236 L640 124",[199,200],"line",{"x1":75,"y1":201,"x2":75,"y2":202,"stroke":106,"style":203},"50","300","stroke-width:1.5px;stroke-dasharray:6 5",[73,205,207],{"x":75,"y":206,"fill":115,"style":116},"312","Left: always in sync, zero running cost · Right: analytics and tuning, a dependency per query",[209,210,71,211,51],"defs",{},[212,213,177,219,71],"marker",{"id":214,"viewBox":215,"refX":92,"refY":216,"markerWidth":217,"markerHeight":217,"orient":218},"sss-arch-arrow","0 0 10 10","5","7","auto-start-reverse",[179,220],{"d":221,"fill":115},"M0 0 L10 5 L0 10 z",[223,224,225],"figcaption",{},"The build-time index ships inside the deploy, so it can never be stale; the hosted index is a separate system you keep in step.",[227,228,230],"h2",{"id":229},"the-four-tools-worth-considering","The Four Tools Worth Considering",[14,232,233,236,237,241],{},[18,234,235],{},"Pagefind"," runs after your build, reads the generated HTML, and writes a chunked index into ",[238,239,240],"code",{},"pagefind\u002F"," in the output folder. Its browser library downloads a small entry file, then fetches only the index fragments and page excerpts that match the typed query. It works with any generator because it reads HTML, not your source.",[14,243,244,247],{},[18,245,246],{},"Lunr"," builds a single inverted index, usually in a build script, serialised to JSON. The browser downloads the whole thing before the first query. It is mature, small in code and easy to reason about, and it scales poorly because the index is monolithic.",[14,249,250,253],{},[18,251,252],{},"MiniSearch"," is similar in shape to Lunr — one serialised index — with better prefix and fuzzy matching, auto-suggestions and a smaller index format. VitePress bundles it as its local search provider.",[14,255,256,259,260,263],{},[18,257,258],{},"Algolia"," (and the free ",[18,261,262],{},"DocSearch"," programme for open-source docs) is a hosted search API. A crawler or a CI job pushes records; the browser sends each keystroke to Algolia and receives ranked results in tens of milliseconds, with typo tolerance, synonyms and analytics.",[265,266,271],"pre",{"className":267,"code":268,"language":269,"meta":270,"style":270},"language-bash shiki shiki-themes github-light github-dark","# Pagefind: any SSG, run after the build\nnpx pagefind --site dist\n# → dist\u002Fpagefind\u002Fpagefind.js, pagefind-ui.js, fragments\u002F, index\u002F\n","bash","",[238,272,273,281,299],{"__ignoreMap":270},[274,275,277],"span",{"class":199,"line":276},1,[274,278,280],{"class":279},"sJ8bj","# Pagefind: any SSG, run after the build\n",[274,282,284,288,292,296],{"class":199,"line":283},2,[274,285,287],{"class":286},"sScJk","npx",[274,289,291],{"class":290},"sZZnC"," pagefind",[274,293,295],{"class":294},"sj4cs"," --site",[274,297,298],{"class":290}," dist\n",[274,300,302],{"class":199,"line":301},3,[274,303,304],{"class":279},"# → dist\u002Fpagefind\u002Fpagefind.js, pagefind-ui.js, fragments\u002F, index\u002F\n",[227,306,308],{"id":307},"index-size-and-first-query-cost","Index Size and First-Query Cost",[14,310,311],{},"The cost a reader pays is the download before their first result. For monolithic indexes that is the whole index; for Pagefind it is the entry file plus the fragments the query touches.",[313,314,315,337],"table",{},[316,317,318],"thead",{},[319,320,321,325,328,331,334],"tr",{},[322,323,324],"th",{},"Corpus",[322,326,327],{},"Lunr (full JSON, gzip)",[322,329,330],{},"MiniSearch (gzip)",[322,332,333],{},"Pagefind (first query)",[322,335,336],{},"Algolia (first query)",[338,339,340,358,374],"tbody",{},[319,341,342,346,349,352,355],{},[343,344,345],"td",{},"300 pages",[343,347,348],{},"210 KB",[343,350,351],{},"150 KB",[343,353,354],{},"64 KB",[343,356,357],{},"9 KB + ~25 KB client",[319,359,360,363,366,369,372],{},[343,361,362],{},"2,000 pages",[343,364,365],{},"1.4 MB",[343,367,368],{},"980 KB",[343,370,371],{},"102 KB",[343,373,357],{},[319,375,376,379,382,385,388],{},[343,377,378],{},"10,000 pages",[343,380,381],{},"7.1 MB",[343,383,384],{},"4.8 MB",[343,386,387],{},"181 KB",[343,389,357],{},[40,391,392,494],{},[43,393,51,398,51,401,51,404,51,407],{"viewBox":394,"role":46,"ariaLabelledBy":395,"xmlns":50},"0 0 780 310",[396,397],"sss-size-title","sss-size-desc",[53,399,400],{"id":396},"First-query download by corpus size",[57,402,403],{"id":397},"A line chart on a log scale. Lunr's first-query download grows from 210 kilobytes at 300 pages to 7.1 megabytes at 10,000 pages. MiniSearch grows from 150 kilobytes to 4.8 megabytes. Pagefind grows only from 64 to 181 kilobytes. Algolia stays flat at about 34 kilobytes including its client.",[61,405],{"x":63,"y":63,"width":64,"height":406,"fill":66},"310",[68,408,71,409,71,412,71,417,71,419,71,422,71,425,71,427,71,433,71,437,71,441,71,445,71,449,71,452,71,455,71,461,71,464,71,467,71,470,71,477,71,482,71,486,71,491,51],{"style":70},[73,410,411],{"x":75,"y":76,"fill":77,"style":78},"Bytes before the first result (log scale, gzip)",[199,413],{"x1":414,"y1":415,"x2":416,"y2":415,"stroke":115,"style":95},"100","260","700",[199,418],{"x1":414,"y1":201,"x2":414,"y2":415,"stroke":115,"style":95},[199,420],{"x1":414,"y1":82,"x2":416,"y2":82,"stroke":106,"style":421},"stroke-width:1px",[199,423],{"x1":414,"y1":424,"x2":416,"y2":424,"stroke":106,"style":421},"120",[199,426],{"x1":414,"y1":201,"x2":416,"y2":201,"stroke":106,"style":421},[73,428,432],{"x":429,"y":430,"fill":115,"style":431},"92","264","font-size:11px;text-anchor:end","10 KB",[73,434,436],{"x":429,"y":435,"fill":115,"style":431},"194","100 KB",[73,438,440],{"x":429,"y":439,"fill":115,"style":431},"124","1 MB",[73,442,444],{"x":429,"y":443,"fill":115,"style":431},"54","10 MB",[73,446,345],{"x":447,"y":448,"fill":115,"style":116},"150","280",[73,450,362],{"x":451,"y":448,"fill":115,"style":116},"400",[73,453,378],{"x":454,"y":448,"fill":115,"style":116},"650",[456,457],"polyline",{"points":458,"fill":175,"stroke":459,"style":460},"150,168 400,110 650,60","#d83b41","stroke-width:2.5px",[456,462],{"points":463,"fill":175,"stroke":157,"style":460},"150,178 400,121 650,72",[456,465],{"points":466,"fill":175,"stroke":93,"style":460},"150,203 400,189 650,172",[456,468],{"points":469,"fill":175,"stroke":122,"style":460},"150,223 400,223 650,223",[73,471,476],{"x":472,"y":473,"fill":474,"style":475},"660","58","#b32b30","font-size:11px;font-weight:700","Lunr 7.1 MB",[73,478,481],{"x":472,"y":479,"fill":480,"style":475},"82","#8a6d0f","MiniSearch 4.8 MB",[73,483,485],{"x":472,"y":484,"fill":93,"style":475},"168","Pagefind 181 KB",[73,487,490],{"x":472,"y":488,"fill":489,"style":475},"219","#166a9e","Algolia ~34 KB",[73,492,493],{"x":451,"y":202,"fill":115,"style":116},"Measured in Chrome DevTools network panel, first query \"deploy\", cache disabled",[223,495,496],{},"Monolithic indexes grow linearly with content; Pagefind's fragment model grows almost flat, which is why it is the default choice past a few hundred pages.",[14,498,499,500,35],{},"Past roughly 1,000 pages, a monolithic index becomes a megabyte-scale download on a phone before the first result, which readers experience as a search box that does nothing for two to four seconds. That threshold is the core of ",[26,501,503],{"href":502},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fsearch-for-static-sites\u002Fsearch-index-size-budgets-for-large-docs\u002F","Search Index Size Budgets for Large Docs",[227,505,507],{"id":506},"query-latency-and-relevance","Query Latency and Relevance",[14,509,510],{},"Once the index is loaded, local queries are fast: Lunr and MiniSearch answered in 2–8 ms on the 2,000-page corpus, Pagefind in 30–60 ms including fragment fetches on the first keystrokes and under 10 ms once fragments were cached. Algolia answered in 25–70 ms per keystroke depending on distance to the nearest data centre.",[14,512,513],{},"Relevance is harder to measure, so we used a test set: the 60 most frequent queries from a production docs site's analytics, each with a known best page. A tool scored a hit when that page ranked first.",[313,515,516,529],{},[316,517,518],{},[319,519,520,523,526],{},[322,521,522],{},"Tool",[322,524,525],{},"Correct page ranked first (of 60)",[322,527,528],{},"Correct in top 3",[338,530,531,542,557,567,577],{},[319,532,533,536,539],{},[343,534,535],{},"Algolia DocSearch (default config)",[343,537,538],{},"49",[343,540,541],{},"57",[319,543,544,551,554],{},[343,545,546,547,550],{},"Pagefind (with ",[238,548,549],{},"data-pagefind-weight"," on titles)",[343,552,553],{},"47",[343,555,556],{},"56",[319,558,559,562,565],{},[343,560,561],{},"Pagefind (defaults)",[343,563,564],{},"43",[343,566,443],{},[319,568,569,572,574],{},[343,570,571],{},"MiniSearch (title boost 3, fuzzy 0.2)",[343,573,91],{},[343,575,576],{},"55",[319,578,579,582,584],{},[343,580,581],{},"Lunr (title boost 10)",[343,583,88],{},[343,585,586],{},"52",[14,588,589,590,35],{},"Algolia's lead comes from typo tolerance and from ranking tuned on attribute order. Pagefind closes most of the gap with two lines of markup — weighting headings and marking navigation chrome as excluded — shown in ",[26,591,593],{"href":592},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fsearch-for-static-sites\u002Fadding-pagefind-to-an-astro-site\u002F","Adding Pagefind to an Astro Site",[40,595,596,690],{},[43,597,51,602,51,605,51,608,51,611],{"viewBox":598,"role":46,"ariaLabelledBy":599,"xmlns":50},"0 0 780 290",[600,601],"sss-rel-title","sss-rel-desc",[53,603,604],{"id":600},"Relevance on 60 real queries",[57,606,607],{"id":601},"Horizontal bars of the number of queries whose best page ranked first. Algolia DocSearch 49, Pagefind with title weighting 47, MiniSearch tuned 44, Pagefind defaults 43, Lunr with title boost 40.",[61,609],{"x":63,"y":63,"width":64,"height":610,"fill":66},"290",[68,612,71,613,71,616,71,621,71,626,71,632,71,637,71,640,71,645,71,649,71,653,71,658,71,662,71,666,71,671,71,675,71,679,71,683,71,687,51],{"style":70},[73,614,615],{"x":75,"y":76,"fill":77,"style":78},"Best page ranked first, out of 60 queries",[199,617],{"x1":618,"y1":619,"x2":618,"y2":620,"stroke":106,"style":95},"230","46","256",[73,622,625],{"x":623,"y":624,"fill":77},"30","72","Algolia DocSearch",[61,627],{"x":618,"y":556,"width":628,"height":629,"rx":630,"fill":122,"opacity":631,"stroke":122,"style":421},"392","24","4","0.25",[73,633,538],{"x":634,"y":635,"fill":77,"style":636},"632","73","font-weight:700",[73,638,639],{"x":623,"y":114,"fill":77},"Pagefind, weighted",[61,641],{"x":618,"y":642,"width":643,"height":629,"rx":630,"fill":93,"opacity":644,"stroke":93,"style":421},"96","376","0.3",[73,646,553],{"x":647,"y":648,"fill":77,"style":636},"616","113",[73,650,652],{"x":623,"y":651,"fill":77},"152","MiniSearch, tuned",[61,654],{"x":618,"y":655,"width":656,"height":629,"rx":630,"fill":155,"opacity":657,"stroke":157,"style":421},"136","352","0.35",[73,659,91],{"x":660,"y":661,"fill":77,"style":636},"592","153",[73,663,665],{"x":623,"y":664,"fill":77},"192","Pagefind, defaults",[61,667],{"x":618,"y":668,"width":669,"height":629,"rx":630,"fill":93,"opacity":670,"stroke":93,"style":421},"176","344","0.15",[73,672,564],{"x":673,"y":674,"fill":77,"style":636},"584","193",[73,676,678],{"x":623,"y":677,"fill":77},"232","Lunr, title boost",[61,680],{"x":618,"y":681,"width":65,"height":629,"rx":630,"fill":682,"opacity":631,"stroke":459,"style":421},"216","#ff595e",[73,684,88],{"x":685,"y":686,"fill":77,"style":636},"560","233",[73,688,689],{"x":75,"y":139,"fill":115,"style":116},"Top 60 queries from four weeks of production search analytics, 2,000-page corpus",[223,691,692],{},"Two attributes of weighting moved Pagefind from 43 to 47 — within two queries of a hosted service.",[227,694,696],{"id":695},"performance-impact-on-the-page","Performance Impact on the Page",[14,698,699,700,703],{},"Search should cost nothing until someone searches. The rule for every tool is the same: do not load the search library or index on page load. Render the search box as plain HTML, and on ",[238,701,702],{},"focus"," or the first keypress, import the library.",[265,705,709],{"className":706,"code":707,"language":708,"meta":270,"style":270},"language-html shiki shiki-themes github-light github-dark","\u003Cinput id=\"q\" type=\"search\" placeholder=\"Search docs\" aria-label=\"Search docs\">\n\u003Cscript type=\"module\">\n  const q = document.getElementById('q');\n  let pagefind;\n  q.addEventListener('focus', async () => {\n    pagefind ??= await import('\u002Fpagefind\u002Fpagefind.js');\n    pagefind.preload?.('');\n  }, { once: true });\n\u003C\u002Fscript>\n","html",[238,710,711,756,772,799,808,837,859,876,888],{"__ignoreMap":270},[274,712,713,717,721,724,727,730,733,735,738,741,743,746,749,751,753],{"class":199,"line":276},[274,714,716],{"class":715},"sVt8B","\u003C",[274,718,720],{"class":719},"s9eBZ","input",[274,722,723],{"class":286}," id",[274,725,726],{"class":715},"=",[274,728,729],{"class":290},"\"q\"",[274,731,732],{"class":286}," type",[274,734,726],{"class":715},[274,736,737],{"class":290},"\"search\"",[274,739,740],{"class":286}," placeholder",[274,742,726],{"class":715},[274,744,745],{"class":290},"\"Search docs\"",[274,747,748],{"class":286}," aria-label",[274,750,726],{"class":715},[274,752,745],{"class":290},[274,754,755],{"class":715},">\n",[274,757,758,760,763,765,767,770],{"class":199,"line":283},[274,759,716],{"class":715},[274,761,762],{"class":719},"script",[274,764,732],{"class":286},[274,766,726],{"class":715},[274,768,769],{"class":290},"\"module\"",[274,771,755],{"class":715},[274,773,774,778,781,784,787,790,793,796],{"class":199,"line":301},[274,775,777],{"class":776},"szBVR","  const",[274,779,780],{"class":294}," q",[274,782,783],{"class":776}," =",[274,785,786],{"class":715}," document.",[274,788,789],{"class":286},"getElementById",[274,791,792],{"class":715},"(",[274,794,795],{"class":290},"'q'",[274,797,798],{"class":715},");\n",[274,800,802,805],{"class":199,"line":801},4,[274,803,804],{"class":776},"  let",[274,806,807],{"class":715}," pagefind;\n",[274,809,811,814,817,819,822,825,828,831,834],{"class":199,"line":810},5,[274,812,813],{"class":715},"  q.",[274,815,816],{"class":286},"addEventListener",[274,818,792],{"class":715},[274,820,821],{"class":290},"'focus'",[274,823,824],{"class":715},", ",[274,826,827],{"class":776},"async",[274,829,830],{"class":715}," () ",[274,832,833],{"class":776},"=>",[274,835,836],{"class":715}," {\n",[274,838,840,843,846,849,852,854,857],{"class":199,"line":839},6,[274,841,842],{"class":715},"    pagefind ",[274,844,845],{"class":776},"??=",[274,847,848],{"class":776}," await",[274,850,851],{"class":776}," import",[274,853,792],{"class":715},[274,855,856],{"class":290},"'\u002Fpagefind\u002Fpagefind.js'",[274,858,798],{"class":715},[274,860,862,865,868,871,874],{"class":199,"line":861},7,[274,863,864],{"class":715},"    pagefind.",[274,866,867],{"class":286},"preload",[274,869,870],{"class":715},"?.(",[274,872,873],{"class":290},"''",[274,875,798],{"class":715},[274,877,879,882,885],{"class":199,"line":878},8,[274,880,881],{"class":715},"  }, { once: ",[274,883,884],{"class":294},"true",[274,886,887],{"class":715}," });\n",[274,889,891,894,896],{"class":199,"line":890},9,[274,892,893],{"class":715},"\u003C\u002F",[274,895,762],{"class":719},[274,897,755],{"class":715},[14,899,900,901,905],{},"On a docs page measured with Lighthouse, loading Pagefind's UI eagerly added 38 KB of JavaScript and 90 ms of Total Blocking Time; loading on focus made the page's metrics identical to a page with no search at all. The same lazy-loading approach is covered in general in ",[26,902,904],{"href":903},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fthird-party-script-performance-on-static-sites\u002F","Third-Party Script Performance on Static Sites",", and Algolia's client benefits from it just as much.",[227,907,909],{"id":908},"cost-and-operations","Cost and Operations",[14,911,912],{},"Build-time tools cost build time and nothing else. Pagefind indexed the 2,000-page corpus in 6.4 seconds and the 10,000-page corpus in 31 seconds on a GitHub Actions runner; a Lunr build script took 11 and 58 seconds. The index is deployed with the pages, invalidated with the same cache rules, and rolled back with the same rollback.",[14,914,915,916,920],{},"Hosted search costs money and an integration. Algolia's DocSearch is free for qualifying open-source documentation; commercial plans charge per search request and per record, and a 2,000-page docs site split into section-level records typically holds 15,000–25,000 records. The operational risk is drift: a crawler that runs nightly means search results lag content by up to a day, and a failed crawl can leave results pointing at deleted pages. Pushing records from CI after each deploy solves drift but adds an API key to the pipeline, which must be scoped to write-only access for that index — see ",[26,917,919],{"href":918},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fsecurity-headers-for-static-sites\u002Fauditing-npm-dependencies-in-ssg-pipelines\u002F","Auditing npm Dependencies in SSG Pipelines"," for secret hygiene in build pipelines.",[40,922,923,1042],{},[43,924,51,928,51,931,51,934,51,936,51,1035],{"viewBox":598,"role":46,"ariaLabelledBy":925,"xmlns":50},[926,927],"sss-dec-title","sss-dec-desc",[53,929,930],{"id":926},"Choosing a search approach",[57,932,933],{"id":927},"A decision tree. If you need analytics, merchandised synonyms or search across several sites, choose a hosted service. Otherwise, if the site has more than about 500 pages, choose Pagefind. Otherwise, if you want the index inside your JavaScript bundle and tight framework integration, MiniSearch is fine; if not, Pagefind is still the simplest choice.",[61,935],{"x":63,"y":63,"width":64,"height":610,"fill":66},[68,937,71,938,71,941,71,945,71,949,71,953,71,955,71,961,71,963,71,967,71,969,71,971,71,974,71,978,71,982,71,984,71,987,71,989,71,991,71,1012,71,1017,71,1023,71,1026,71,1029,71,1032,51],{"style":70},[73,939,940],{"x":75,"y":76,"fill":77,"style":78},"Three questions pick the tool",[61,942],{"x":943,"y":944,"width":448,"height":91,"rx":92,"fill":105,"stroke":106,"style":95},"250","48",[73,946,948],{"x":75,"y":947,"fill":77,"style":100},"67","Need analytics, managed synonyms",[73,950,952],{"x":75,"y":951,"fill":77,"style":100},"83","or cross-site search?",[61,954],{"x":143,"y":944,"width":121,"height":91,"rx":92,"fill":122,"opacity":94,"stroke":122,"style":95},[73,956,960],{"x":957,"y":958,"fill":77,"style":959},"670","75","font-weight:700;text-anchor:middle","Hosted (Algolia)",[61,962],{"x":943,"y":90,"width":448,"height":91,"rx":92,"fill":105,"stroke":106,"style":95},[73,964,966],{"x":75,"y":965,"fill":77,"style":100},"157","More than ~500 pages?",[61,968],{"x":143,"y":90,"width":121,"height":91,"rx":92,"fill":93,"opacity":94,"stroke":93,"style":95},[73,970,235],{"x":957,"y":965,"fill":77,"style":959},[61,972],{"x":943,"y":973,"width":448,"height":91,"rx":92,"fill":105,"stroke":106,"style":95},"212",[73,975,977],{"x":75,"y":976,"fill":77,"style":100},"231","Want the index inside your bundle",[73,979,981],{"x":75,"y":980,"fill":77,"style":100},"247","and custom ranking in JS?",[61,983],{"x":143,"y":973,"width":121,"height":91,"rx":92,"fill":155,"opacity":156,"stroke":157,"style":95},[73,985,252],{"x":957,"y":986,"fill":77,"style":959},"239",[61,988],{"x":88,"y":973,"width":121,"height":91,"rx":92,"fill":93,"opacity":94,"stroke":93,"style":95},[73,990,235],{"x":424,"y":986,"fill":77,"style":959},[68,992,177,993,177,997,177,1000,177,1003,177,1006,177,1009,71],{"stroke":115,"fill":175,"style":176},[179,994],{"d":995,"style":996},"M532 70 L586 70","marker-end:url(#sss-dec-arrow)",[179,998],{"d":999,"style":996},"M390 94 L390 126",[179,1001],{"d":1002,"style":996},"M532 152 L586 152",[179,1004],{"d":1005,"style":996},"M390 176 L390 208",[179,1007],{"d":1008,"style":996},"M532 234 L586 234",[179,1010],{"d":1011,"style":996},"M248 234 L204 234",[73,1013,1016],{"x":1014,"y":1015,"fill":115,"style":116},"558","64","yes",[73,1018,1022],{"x":1019,"y":1020,"fill":115,"style":1021},"402","114","font-size:11px","no",[73,1024,1016],{"x":1014,"y":1025,"fill":115,"style":116},"146",[73,1027,1022],{"x":1019,"y":1028,"fill":115,"style":1021},"196",[73,1030,1016],{"x":1014,"y":1031,"fill":115,"style":116},"228",[73,1033,1022],{"x":1034,"y":1031,"fill":115,"style":116},"226",[209,1036,71,1037,51],{},[212,1038,177,1040,71],{"id":1039,"viewBox":215,"refX":92,"refY":216,"markerWidth":217,"markerHeight":217,"orient":218},"sss-dec-arrow",[179,1041],{"d":221,"fill":115},[223,1043,1044],{},"Lunr is absent on purpose: for new projects, MiniSearch does the same job with better matching, and Pagefind does it at any scale.",[227,1046,1048],{"id":1047},"multilingual-and-multi-version-content","Multilingual and Multi-Version Content",[14,1050,1051,1052,1055,1056,1059,1060,1063,1064,1068],{},"Two structural questions change the choice. ",[18,1053,1054],{},"Languages",": stemming and tokenisation are language-specific, and an English-stemmed index returns poor results for German compounds or Japanese text with no spaces. Pagefind detects each page's ",[238,1057,1058],{},"lang"," attribute and builds a separate index per language automatically; Lunr needs ",[238,1061,1062],{},"lunr-languages"," plugins per language, and none of the local tools segment Chinese or Japanese as well as a hosted service. ",[26,1065,1067],{"href":1066},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fsearch-for-static-sites\u002Fmultilingual-search-on-static-sites\u002F","Multilingual Search on Static Sites"," covers the details.",[14,1070,1071,1074,1075,1078],{},[18,1072,1073],{},"Versions",": a docs site with several versions should not return v2 pages to a reader on v3. Pagefind supports filters (",[238,1076,1077],{},"data-pagefind-filter=\"version:3.2\"",") that are indexed at build time and applied at query time; Algolia uses facets for the same purpose. Whatever the tool, default the filter to the version the reader is currently browsing.",[227,1080,1082],{"id":1081},"designing-the-search-experience","Designing the Search Experience",[14,1084,1085],{},"The index is half the feature. The other half is what the reader sees between typing and clicking, and most of the perceived quality of search is decided there.",[14,1087,1088,1091,1092,1095,1096,1099,1100,1103,1104,1107,1108,1111,1112,1115],{},[18,1089,1090],{},"Show section context in results."," A result titled \"Configuration\" is useless on a site with forty configuration pages. Display the page's breadcrumb or parent section above the title, and show a highlighted excerpt around the matched term rather than the page description. Pagefind returns an ",[238,1093,1094],{},"excerpt"," with ",[238,1097,1098],{},"\u003Cmark>"," tags and a ",[238,1101,1102],{},"meta"," object you can populate with ",[238,1105,1106],{},"data-pagefind-meta=\"section:Deployment\"","; Algolia returns hierarchy levels (",[238,1109,1110],{},"lvl0","–",[238,1113,1114],{},"lvl6",") for the same purpose.",[14,1117,1118,1121,1122,1125,1126,1129],{},[18,1119,1120],{},"Link to the heading, not the page."," Long reference pages contain dozens of answers. Pagefind's ",[238,1123,1124],{},"sub_results"," and Algolia's section-level records both let a result link to ",[238,1127,1128],{},"\u002Fguide\u002Fconfig\u002F#cache-directory"," instead of the top of the page, which on the 2,000-page corpus cut the median time from click to answer — measured in moderated sessions — from 14 seconds to 5.",[14,1131,1132,1135,1136,1139,1140,1143,1144,1147],{},[18,1133,1134],{},"Keyboard first."," Documentation readers are developers. Bind ",[238,1137,1138],{},"\u002F"," or ",[238,1141,1142],{},"Ctrl+K"," to focus search, support arrow keys through results and ",[238,1145,1146],{},"Enter"," to open, and restore focus correctly when the dialog closes. Test with a screen reader: the results list needs a live region announcing the count, or blind users hear nothing after typing.",[14,1149,1150,1153],{},[18,1151,1152],{},"Debounce sensibly."," Local tools can query on every keystroke; hosted tools should debounce by 100–150 ms, or a fast typist generates a request per character. On one Algolia-backed site, adding a 120 ms debounce cut billed search requests by 38% with no visible change in responsiveness.",[14,1155,1156,1159],{},[18,1157,1158],{},"Handle empty results kindly."," Suggest the closest matching section, offer a link to the full index or sitemap, and — most importantly — record the query. Zero-result queries are direct evidence of missing or misnamed content.",[227,1161,1163],{"id":1162},"measuring-search-quality-over-time","Measuring Search Quality Over Time",[14,1165,1166],{},"Search quality decays silently as content grows: new pages crowd old answers out of the top three, renamed features stop matching the words readers use, and nobody notices until support tickets rise. Treat search like any other production feature and measure it continuously.",[14,1168,1169,1170,1173,1174,1177,1178,1181],{},"Keep the query test set from the relevance comparison above in the repository as a JSON file of query and expected URL pairs. A small script runs each query against the freshly built index in CI — Pagefind's Node API (",[238,1171,1172],{},"pagefind.createIndex",", then ",[238,1175,1176],{},"search",") and MiniSearch both run headlessly — and reports the number ranked first and in the top three. Fail the build if either drops by more than two from the stored baseline. On one docs team this caught a template change that accidentally removed ",[238,1179,1180],{},"data-pagefind-body"," from API pages, which would have dropped 140 pages out of search entirely.",[14,1183,1184,1185,35],{},"In production, log three events with a first-party beacon: the query, the rank of the clicked result, and queries with zero results. Reviewed monthly, the zero-result list becomes a writing backlog, and the click-rank distribution tells you whether results are ordered well. A healthy docs search sees more than 70% of clicks on the first result; below 50% means ranking needs work. The collection approach is the same as for web vitals in ",[26,1186,1188],{"href":1187},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fmonitoring-static-sites-in-production\u002Fbuilding-a-core-web-vitals-dashboard-from-rum-data\u002F","Building a Core Web Vitals Dashboard from RUM Data",[227,1190,1192],{"id":1191},"privacy-security-and-access-control","Privacy, Security and Access Control",[14,1194,1195,1196,1199,1200,1203,1204,35],{},"A build-time index has a property teams often miss: ",[18,1197,1198],{},"everything in it is public",". The index files sit on the CDN next to the pages, and anyone can download and read them. That is fine for public docs, and a real problem for a site where some pages sit behind authentication. If a password-protected section is indexed into the same Pagefind bundle, its excerpts are readable by anyone who fetches the fragments. Build a separate index for protected content, serve it from behind the same access control as the pages, and exclude protected pages from the public index with ",[238,1201,1202],{},"data-pagefind-ignore=\"all\"",". The access-control side is covered in ",[26,1205,1207],{"href":1206},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fserverless-functions-for-static-sites\u002Fprotecting-a-static-site-behind-authentication\u002F","Protecting a Static Site Behind Authentication",[14,1209,1210],{},"Hosted search has the opposite profile. Queries leave the reader's browser and reach a third party, which matters for privacy policies and for sites serving regulated industries; some teams must disclose it or proxy it. Algolia search-only API keys are designed to be public, but they should be restricted to the specific index and, ideally, to your domain via referrer restrictions. Never ship an admin or write key to the browser — it has happened often enough that secret scanners look for Algolia key patterns specifically.",[14,1212,1213,1214,1217,1218,1221,1222,1225,1226,1230],{},"Finally, both approaches need a Content Security Policy that allows them. Pagefind loads a WebAssembly module, which requires ",[238,1215,1216],{},"'wasm-unsafe-eval'"," in ",[238,1219,1220],{},"script-src","; hosted search needs its API domain in ",[238,1223,1224],{},"connect-src",". Add these deliberately, as described in ",[26,1227,1229],{"href":1228},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fsecurity-headers-for-static-sites\u002Fwriting-a-content-security-policy-for-a-static-site\u002F","Writing a Content Security Policy for a Static Site",", rather than discovering them from a broken search box after the policy ships.",[227,1232,1234],{"id":1233},"generator-specific-notes","Generator-Specific Notes",[14,1236,1237],{},"Because Pagefind reads HTML, the generator matters less than for any other feature on a static site. Still, each has a natural integration point:",[1239,1240,1241,1252,1270,1280,1290],"ul",{},[1242,1243,1244,1247,1248,1251],"li",{},[18,1245,1246],{},"Astro \u002F Starlight:"," Starlight runs Pagefind automatically; plain Astro sites add it with a post-build script or the ",[238,1249,1250],{},"astro-pagefind"," integration.",[1242,1253,1254,1257,1258,1261,1262,1265,1266,35],{},[18,1255,1256],{},"Hugo:"," run ",[238,1259,1260],{},"npx pagefind --site public"," after ",[238,1263,1264],{},"hugo --minify","; no Hugo changes needed beyond marking the content region. See ",[26,1267,1269],{"href":1268},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fsearch-for-static-sites\u002Findexing-hugo-sites-with-pagefind\u002F","Indexing Hugo Sites with Pagefind",[1242,1271,1272,1275,1276,35],{},[18,1273,1274],{},"Eleventy:"," either Pagefind after the build, or a Lunr\u002FMiniSearch index built from the collections API during the build, as in ",[26,1277,1279],{"href":1278},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fsearch-for-static-sites\u002Fbuilding-a-lunr-index-at-build-time-in-eleventy\u002F","Building a Lunr Index at Build Time in Eleventy",[1242,1281,1282,1285,1286,1289],{},[18,1283,1284],{},"Docusaurus:"," Algolia by default; ",[238,1287,1288],{},"@easyops-cn\u002Fdocusaurus-search-local"," or a Pagefind post-build step for self-contained search.",[1242,1291,1292,1295,1296,1299],{},[18,1293,1294],{},"Next.js static export:"," Pagefind over the ",[238,1297,1298],{},"out\u002F"," directory works unchanged.",[227,1301,1303],{"id":1302},"common-pitfalls","Common Pitfalls",[1239,1305,1306,1315,1321,1327,1333],{},[1242,1307,1308,1311,1312,1314],{},[18,1309,1310],{},"Indexing navigation chrome."," Without a content boundary, every page's sidebar is indexed, and a query for \"installation\" matches all pages. Mark the main content region (",[238,1313,1180],{},") or exclude chrome.",[1242,1316,1317,1320],{},[18,1318,1319],{},"Loading search on page load."," It adds JavaScript and blocking time to every page for a feature most visitors never use.",[1242,1322,1323,1326],{},[18,1324,1325],{},"Monolithic indexes on large sites."," A multi-megabyte JSON index is a two-to-four-second stall on a phone before the first result.",[1242,1328,1329,1332],{},[18,1330,1331],{},"Stale hosted indexes."," A nightly crawl lags content by a day; push records from CI or accept the lag explicitly.",[1242,1334,1335,1338],{},[18,1336,1337],{},"Ignoring zero-result queries."," They are the best content-gap signal a docs team has. Log them, even with a local search tool, by sending a beacon on queries that return nothing.",[227,1340,1342],{"id":1341},"key-takeaways","Key Takeaways",[1239,1344,1345,1348,1351,1354,1357],{},[1242,1346,1347],{},"Static sites do not need a search server: a build-time index deployed with the pages is always in sync and costs nothing to run.",[1242,1349,1350],{},"Pagefind's fragmented index kept first-query downloads at 64–181 KB from 300 to 10,000 pages, while monolithic indexes grew to several megabytes.",[1242,1352,1353],{},"Hosted search still wins on relevance tuning, analytics and cross-site search; with weighting, Pagefind came within two queries of Algolia on a 60-query test set.",[1242,1355,1356],{},"Load search code only when the reader focuses the search box; eager loading cost 90 ms of Total Blocking Time for no benefit.",[1242,1358,1359],{},"Plan for languages and versions up front: both change how the index is built and filtered.",[227,1361,1363],{"id":1362},"faq","FAQ",[1365,1366,1368],"h3",{"id":1367},"can-a-static-site-have-search-without-a-backend","Can a static site have search without a backend?",[14,1370,1371],{},"Yes. Build-time search tools index your content during the build and ship the index as static files. The browser downloads the index, or fragments of it, and runs queries locally. Pagefind, Lunr and MiniSearch all work this way.",[1365,1373,1375],{"id":1374},"which-static-search-tool-scales-best","Which static search tool scales best?",[14,1377,1378],{},"Pagefind, because it splits the index into small fragments and downloads only those a query needs. On a 10,000-page site the first query downloaded about 180 KB with Pagefind, while a single-file Lunr index was over 9 MB uncompressed.",[1365,1380,1382],{"id":1381},"when-is-a-hosted-service-like-algolia-worth-it","When is a hosted service like Algolia worth it?",[14,1384,1385],{},"When you need query analytics, synonyms managed by non-engineers, typo tolerance tuned per language, or search across several sites and data sources at once. For a single documentation site, a build-time index is usually enough and costs nothing to run.",[1365,1387,1389],{"id":1388},"does-client-side-search-hurt-core-web-vitals","Does client-side search hurt Core Web Vitals?",[14,1391,1392],{},"Not if the index loads on demand. Load the search script and index only when the reader focuses the search box, so no search bytes compete with the page's LCP or add main-thread work before the first interaction.",[1365,1394,1396],{"id":1395},"how-do-i-keep-search-results-current","How do I keep search results current?",[14,1398,1399],{},"Build the index in the same build that produces the pages. Because the index is part of the deployed artifact, it can never be out of step with the content, which is a real advantage over crawler-based hosted search.",[227,1401,1403],{"id":1402},"related","Related",[1239,1405,1406,1415,1420,1427,1432,1437,1442,1447],{},[1242,1407,1408,1411,1412,1414],{},[18,1409,1410],{},"Up:"," ",[26,1413,29],{"href":28}," — search as a framework-selection factor.",[1242,1416,1417,1419],{},[26,1418,593],{"href":592}," — the full setup with weighting and lazy loading.",[1242,1421,1422,1426],{},[26,1423,1425],{"href":1424},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fsearch-for-static-sites\u002Fpagefind-vs-algolia-docsearch\u002F","Pagefind vs Algolia DocSearch"," — the build-time vs hosted decision in depth.",[1242,1428,1429,1431],{},[26,1430,1279],{"href":1278}," — a monolithic index done well for small sites.",[1242,1433,1434,1436],{},[26,1435,503],{"href":502}," — where monolithic indexes stop working.",[1242,1438,1439,1441],{},[26,1440,1067],{"href":1066}," — per-language indexes and stemming.",[1242,1443,1444,1446],{},[26,1445,1269],{"href":1268}," — search for the generator that ships none.",[1242,1448,1449,1451],{},[26,1450,34],{"href":33}," — which search each framework ships by default.",[1453,1454,1455],"style",{},"html pre.shiki code .sJ8bj, html code.shiki .sJ8bj{--shiki-default:#6A737D;--shiki-dark:#6A737D}html pre.shiki code .sScJk, html code.shiki .sScJk{--shiki-default:#6F42C1;--shiki-dark:#B392F0}html pre.shiki code .sZZnC, html code.shiki .sZZnC{--shiki-default:#032F62;--shiki-dark:#9ECBFF}html pre.shiki code .sj4cs, html code.shiki .sj4cs{--shiki-default:#005CC5;--shiki-dark:#79B8FF}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 .sVt8B, html code.shiki .sVt8B{--shiki-default:#24292E;--shiki-dark:#E1E4E8}html pre.shiki code .s9eBZ, html code.shiki .s9eBZ{--shiki-default:#22863A;--shiki-dark:#85E89D}html pre.shiki code .szBVR, html code.shiki .szBVR{--shiki-default:#D73A49;--shiki-dark:#F97583}",{"title":270,"searchDepth":283,"depth":283,"links":1457},[1458,1459,1460,1461,1462,1463,1464,1465,1466,1467,1468,1469,1470,1477],{"id":229,"depth":283,"text":230},{"id":307,"depth":283,"text":308},{"id":506,"depth":283,"text":507},{"id":695,"depth":283,"text":696},{"id":908,"depth":283,"text":909},{"id":1047,"depth":283,"text":1048},{"id":1081,"depth":283,"text":1082},{"id":1162,"depth":283,"text":1163},{"id":1191,"depth":283,"text":1192},{"id":1233,"depth":283,"text":1234},{"id":1302,"depth":283,"text":1303},{"id":1341,"depth":283,"text":1342},{"id":1362,"depth":283,"text":1363,"children":1471},[1472,1473,1474,1475,1476],{"id":1367,"depth":301,"text":1368},{"id":1374,"depth":301,"text":1375},{"id":1381,"depth":301,"text":1382},{"id":1388,"depth":301,"text":1389},{"id":1395,"depth":301,"text":1396},{"id":1402,"depth":283,"text":1403},[1479,1481,1482],{"name":1480,"item":1138},"Home",{"name":29,"item":28},{"name":5,"item":1483},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fsearch-for-static-sites\u002F","2026-09-18","How to add search to a static site without a server: Pagefind, Lunr, MiniSearch and Algolia compared on index size, query latency, relevance and cost.","md",[1488,1489,1490,1491,1492],{"q":1368,"a":1371},{"q":1375,"a":1378},{"q":1382,"a":1385},{"q":1389,"a":1392},{"q":1396,"a":1399},{},true,"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fsearch-for-static-sites",{"title":5,"description":1485},"choosing-the-right-static-site-generator-for-production\u002Fsearch-for-static-sites\u002Findex","guide","SyBzYb3aa_v8la_HTEf-f9eTpsgRgrRGv6tWcyyFfkM",[1501,1504,1507,1510,1513,1516,1519,1522,1525,1527,1530,1533,1536,1539,1542,1545,1548,1551,1554,1557,1559,1562,1565,1568,1571,1574,1577,1580,1583,1586,1589,1592,1595,1598,1601,1604,1607,1610,1613,1616,1619,1621,1623,1624,1626,1628,1630,1632,1635,1638,1641,1644,1647,1650,1653,1656,1659,1662,1665,1668,1671,1674,1677,1680,1683,1686,1689,1692,1695,1698,1701,1704,1707,1710,1713,1716,1719,1722,1725,1728,1731,1734,1737,1740,1743,1746,1749,1752,1755,1758,1761,1764,1767,1770,1773,1776,1779,1782,1785,1788,1791,1794,1797,1800,1803,1806,1809,1812,1814,1817,1820,1823,1826,1829,1832,1835,1838,1841,1844,1847,1850,1853,1856,1859,1862,1865,1868,1871,1874,1877,1880,1883,1886,1889,1892,1895,1898,1901,1904,1907,1910,1912,1915,1918,1921,1924,1927,1930,1933,1936,1939,1942,1945,1948,1951,1954,1957,1960,1963,1966,1969,1972,1975,1978,1980,1983,1986,1989,1992,1995,1997,2000,2003,2006,2009,2012,2015,2018,2021,2024,2027,2030,2032],{"path":1502,"title":1503},"\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":1505,"title":1506},"\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":1508,"title":1509},"\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":1511,"title":1512},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fastro-vs-eleventy-for-documentation-sites","Astro vs Eleventy for Documentation Sites",{"path":1514,"title":1515},"\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":1517,"title":1518},"\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":1520,"title":1521},"\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":1523,"title":1524},"\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":1526,"title":34},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fdocs-frameworks-docusaurus-starlight-vitepress",{"path":1528,"title":1529},"\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":1531,"title":1532},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fdocs-frameworks-docusaurus-starlight-vitepress\u002Fmigrating-from-mkdocs-to-starlight","Migrating from MkDocs to Starlight",{"path":1534,"title":1535},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fdocs-frameworks-docusaurus-starlight-vitepress\u002Fversioned-documentation-with-docusaurus","Versioned Documentation with Docusaurus",{"path":1537,"title":1538},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fdocs-frameworks-docusaurus-starlight-vitepress\u002Fvitepress-for-library-documentation","VitePress for Library Documentation",{"path":1540,"title":1541},"\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":1543,"title":1544},"\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":1546,"title":1547},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fhugo-build-times-for-large-repositories","Hugo Build Times for Large Repositories",{"path":1549,"title":1550},"\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":1552,"title":1553},"\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":1555,"title":1556},"\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":1558,"title":29},"\u002Fchoosing-the-right-static-site-generator-for-production",{"path":1560,"title":1561},"\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":1563,"title":1564},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fjekyll-plugin-ecosystem","Jekyll Plugin Ecosystem",{"path":1566,"title":1567},"\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":1569,"title":1570},"\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":1572,"title":1573},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fjekyll-plugin-ecosystem\u002Fspeeding-up-slow-jekyll-builds","Speeding Up Slow Jekyll Builds",{"path":1575,"title":1576},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fjekyll-plugin-ecosystem\u002Fupgrading-jekyll-and-ruby-versions-safely","Upgrading Jekyll and Ruby Versions Safely",{"path":1578,"title":1579},"\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":1581,"title":1582},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fmigrating-between-static-site-generators","Migrating Between Static Site Generators",{"path":1584,"title":1585},"\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":1587,"title":1588},"\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":1590,"title":1591},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fmigrating-between-static-site-generators\u002Fmigrating-from-gatsby-to-astro","Migrating from Gatsby to Astro",{"path":1593,"title":1594},"\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":1596,"title":1597},"\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":1599,"title":1600},"\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":1602,"title":1603},"\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":1605,"title":1606},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fnextjs-static-export-for-content-sites","Next.js Static Export for Content Sites",{"path":1608,"title":1609},"\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":1611,"title":1612},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fnextjs-static-export-for-content-sites\u002Fnextjs-app-router-static-export-limitations","Next.js App Router Static Export Limitations",{"path":1614,"title":1615},"\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":1617,"title":1618},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fnextjs-static-export-for-content-sites\u002Foptimizing-images-in-nextjs-static-export","Optimizing Images in Next.js Static Export",{"path":1620,"title":593},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fsearch-for-static-sites\u002Fadding-pagefind-to-an-astro-site",{"path":1622,"title":1279},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fsearch-for-static-sites\u002Fbuilding-a-lunr-index-at-build-time-in-eleventy",{"path":1495,"title":5},{"path":1625,"title":1269},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fsearch-for-static-sites\u002Findexing-hugo-sites-with-pagefind",{"path":1627,"title":1067},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fsearch-for-static-sites\u002Fmultilingual-search-on-static-sites",{"path":1629,"title":1425},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fsearch-for-static-sites\u002Fpagefind-vs-algolia-docsearch",{"path":1631,"title":503},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fsearch-for-static-sites\u002Fsearch-index-size-budgets-for-large-docs",{"path":1633,"title":1634},"\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":1636,"title":1637},"\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":1639,"title":1640},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fssg-framework-selection-matrix\u002Fevaluating-ssg-accessibility-defaults","Evaluating SSG Accessibility Defaults",{"path":1642,"title":1643},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fssg-framework-selection-matrix","SSG Framework Selection Matrix",{"path":1645,"title":1646},"\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":1648,"title":1649},"\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":1651,"title":1652},"\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":1654,"title":1655},"\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":1657,"title":1658},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fcdn-caching-rules-for-ssgs","CDN Caching Rules for SSGs",{"path":1660,"title":1661},"\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":1663,"title":1664},"\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":1666,"title":1667},"\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":1669,"title":1670},"\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":1672,"title":1673},"\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":1675,"title":1676},"\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":1678,"title":1679},"\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":1681,"title":1682},"\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":1684,"title":1685},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fcumulative-layout-shift-fixes-for-static-sites","Cumulative Layout Shift Fixes for Static Sites",{"path":1687,"title":1688},"\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":1690,"title":1691},"\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":1693,"title":1694},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Ffont-loading-strategies-for-static-sites\u002Ffont-display-optional-vs-swap","font-display: optional vs swap",{"path":1696,"title":1697},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Ffont-loading-strategies-for-static-sites","Font Loading Strategies for Static Sites",{"path":1699,"title":1700},"\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":1702,"title":1703},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Ffont-loading-strategies-for-static-sites\u002Fpreloading-fonts-without-double-downloads","Preloading Fonts Without Double Downloads",{"path":1705,"title":1706},"\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":1708,"title":1709},"\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":1711,"title":1712},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fimage-optimization-pipelines-in-astro\u002Fbuilding-an-image-cdn-pipeline-for-static-sites","Building an Image CDN Pipeline for Static Sites",{"path":1714,"title":1715},"\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":1717,"title":1718},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fimage-optimization-pipelines-in-astro","Image Optimization Pipelines in Astro",{"path":1720,"title":1721},"\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":1723,"title":1724},"\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":1726,"title":1727},"\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":1729,"title":1730},"\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":1732,"title":1733},"\u002Fperformance-optimization-core-web-vitals-for-ssgs","Core Web Vitals Optimization for SSGs",{"path":1735,"title":1736},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fjavascript-hydration-partial-rendering\u002Fastro-islands-vs-full-hydration-performance","Astro Islands vs Full Hydration Performance",{"path":1738,"title":1739},"\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":1741,"title":1742},"\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":1744,"title":1745},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fjavascript-hydration-partial-rendering","JavaScript Hydration & Partial Rendering",{"path":1747,"title":1748},"\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":1750,"title":1751},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fjavascript-hydration-partial-rendering\u002Freplacing-react-islands-with-web-components","Replacing React Islands with Web Components",{"path":1753,"title":1754},"\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":1756,"title":1757},"\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":1759,"title":1760},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Flargest-contentful-paint-optimization-for-static-sites","Largest Contentful Paint Optimization for Static Sites",{"path":1762,"title":1763},"\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":1765,"title":1766},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Flargest-contentful-paint-optimization-for-static-sites\u002Foptimizing-lcp-on-astro-with-priority-hints","Optimizing LCP on Astro with Priority Hints",{"path":1768,"title":1769},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Flargest-contentful-paint-optimization-for-static-sites\u002Freducing-lcp-from-hero-images-on-static-sites","Reducing LCP from Hero Images on Static Sites",{"path":1771,"title":1772},"\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":1774,"title":1775},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fperformance-budgets-and-lighthouse-ci","Performance Budgets and Lighthouse CI",{"path":1777,"title":1778},"\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":1780,"title":1781},"\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":1783,"title":1784},"\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":1786,"title":1787},"\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":1789,"title":1790},"\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":1792,"title":1793},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fresource-hints-and-navigation-speed\u002Fauditing-unused-preloads","Auditing Unused Preloads",{"path":1795,"title":1796},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fresource-hints-and-navigation-speed","Resource Hints and Navigation Speed",{"path":1798,"title":1799},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fresource-hints-and-navigation-speed\u002Finstant-navigation-with-speculation-rules","Instant Navigation with Speculation Rules",{"path":1801,"title":1802},"\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":1804,"title":1805},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fresource-hints-and-navigation-speed\u002Fprefetching-links-in-astro","Prefetching Links in Astro",{"path":1807,"title":1808},"\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":1810,"title":1811},"\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":1813,"title":904},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fthird-party-script-performance-on-static-sites",{"path":1815,"title":1816},"\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":1818,"title":1819},"\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":1821,"title":1822},"\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":1824,"title":1825},"\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":1827,"title":1828},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fcloudflare-pages-edge-caching-setup\u002Fautomating-eleventy-deployments-with-cloudflare-pages","Automating Eleventy Deployments on Cloudflare Pages",{"path":1830,"title":1831},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fcloudflare-pages-edge-caching-setup\u002Fconfiguring-redirects-on-cloudflare-pages","Configuring Redirects on Cloudflare Pages",{"path":1833,"title":1834},"\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":1836,"title":1837},"\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":1839,"title":1840},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fcloudflare-pages-edge-caching-setup","Cloudflare Pages Edge Caching Setup",{"path":1842,"title":1843},"\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":1845,"title":1846},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fcontent-workflows-for-documentation-teams\u002Fchecking-links-in-pull-requests","Checking Links in Pull Requests",{"path":1848,"title":1849},"\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":1851,"title":1852},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fcontent-workflows-for-documentation-teams\u002Feditorial-checks-with-vale-in-ci","Editorial Checks with Vale in CI",{"path":1854,"title":1855},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fcontent-workflows-for-documentation-teams","Content Workflows for Documentation Teams",{"path":1857,"title":1858},"\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":1860,"title":1861},"\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":1863,"title":1864},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fgithub-actions-for-automated-ssg-builds\u002Fbuilding-astro-sites-with-github-actions","Building Astro Sites with GitHub Actions",{"path":1866,"title":1867},"\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":1869,"title":1870},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fgithub-actions-for-automated-ssg-builds\u002Fdeploying-to-github-pages-with-actions","Deploying to GitHub Pages with Actions",{"path":1872,"title":1873},"\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":1875,"title":1876},"\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":1878,"title":1879},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fgithub-actions-for-automated-ssg-builds","GitHub Actions for Automated SSG Builds",{"path":1881,"title":1882},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fgithub-actions-for-automated-ssg-builds\u002Fmatrix-builds-for-multi-site-monorepos","Matrix Builds for Multi-Site Monorepos",{"path":1884,"title":1885},"\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":1887,"title":1888},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fincremental-builds-and-build-caching-for-ssgs\u002Fenabling-incremental-builds-in-eleventy","Enabling Incremental Builds in Eleventy",{"path":1890,"title":1891},"\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":1893,"title":1894},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fincremental-builds-and-build-caching-for-ssgs","Incremental Builds and Build Caching for SSGs",{"path":1896,"title":1897},"\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":1899,"title":1900},"\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":1902,"title":1903},"\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":1905,"title":1906},"\u002Fproduction-ready-deployment-cicd-workflows","Production-Ready Deployment & CI\u002FCD for SSGs",{"path":1908,"title":1909},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fmonitoring-static-sites-in-production\u002Falerting-on-cache-hit-ratio-drops","Alerting on Cache Hit Ratio Drops",{"path":1911,"title":1188},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fmonitoring-static-sites-in-production\u002Fbuilding-a-core-web-vitals-dashboard-from-rum-data",{"path":1913,"title":1914},"\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":1916,"title":1917},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fmonitoring-static-sites-in-production","Monitoring Static Sites in Production",{"path":1919,"title":1920},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fmonitoring-static-sites-in-production\u002Flogging-404s-at-the-edge","Logging 404s at the Edge",{"path":1922,"title":1923},"\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":1925,"title":1926},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fnetlify-vs-vercel-deployment-strategies\u002Fconfiguring-vercel-for-hugo-and-eleventy","Configuring Vercel for Hugo and Eleventy",{"path":1928,"title":1929},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fnetlify-vs-vercel-deployment-strategies","Netlify vs Vercel Deployment Strategies",{"path":1931,"title":1932},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fnetlify-vs-vercel-deployment-strategies\u002Fnetlify-build-hooks-for-content-updates","Netlify Build Hooks for Content Updates",{"path":1934,"title":1935},"\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":1937,"title":1938},"\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":1940,"title":1941},"\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":1943,"title":1944},"\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":1946,"title":1947},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fpreview-environments-for-pull-requests\u002Fcleaning-up-stale-preview-deployments","Cleaning Up Stale Preview Deployments",{"path":1949,"title":1950},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fpreview-environments-for-pull-requests","Preview Environments for Pull Requests",{"path":1952,"title":1953},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fpreview-environments-for-pull-requests\u002Fpassword-protecting-preview-deployments","Password-Protecting Preview Deployments",{"path":1955,"title":1956},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fpreview-environments-for-pull-requests\u002Fpreviewing-headless-cms-drafts","Previewing Headless CMS Drafts",{"path":1958,"title":1959},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fpreview-environments-for-pull-requests\u002Fvisual-regression-testing-on-preview-deploys","Visual Regression Testing on Preview Deploys",{"path":1961,"title":1962},"\u002Fproduction-ready-deployment-cicd-workflows\u002Frollbacks-and-deploy-safety-for-static-sites\u002Fatomic-deploys-vs-incremental-uploads","Atomic Deploys vs Incremental Uploads",{"path":1964,"title":1965},"\u002Fproduction-ready-deployment-cicd-workflows\u002Frollbacks-and-deploy-safety-for-static-sites\u002Fcanary-releases-for-static-sites","Canary Releases for Static Sites",{"path":1967,"title":1968},"\u002Fproduction-ready-deployment-cicd-workflows\u002Frollbacks-and-deploy-safety-for-static-sites\u002Ffeature-flags-on-static-sites","Feature Flags on Static Sites",{"path":1970,"title":1971},"\u002Fproduction-ready-deployment-cicd-workflows\u002Frollbacks-and-deploy-safety-for-static-sites","Rollbacks and Deploy Safety for Static Sites",{"path":1973,"title":1974},"\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":1976,"title":1977},"\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":1979,"title":919},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fsecurity-headers-for-static-sites\u002Fauditing-npm-dependencies-in-ssg-pipelines",{"path":1981,"title":1982},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fsecurity-headers-for-static-sites\u002Fenabling-hsts-and-preload-safely","Enabling HSTS and Preload Safely",{"path":1984,"title":1985},"\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":1987,"title":1988},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fsecurity-headers-for-static-sites","Security Headers and Hardening for Static Sites",{"path":1990,"title":1991},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fsecurity-headers-for-static-sites\u002Fsecuring-deploy-credentials-with-github-oidc","Securing Deploy Credentials with GitHub OIDC",{"path":1993,"title":1994},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fsecurity-headers-for-static-sites\u002Fsubresource-integrity-for-third-party-assets","Subresource Integrity for Third-Party Assets",{"path":1996,"title":1229},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fsecurity-headers-for-static-sites\u002Fwriting-a-content-security-policy-for-a-static-site",{"path":1998,"title":1999},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fself-hosting-static-sites\u002Fclean-urls-and-trailing-slashes-on-s3","Clean URLs and Trailing Slashes on S3",{"path":2001,"title":2002},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fself-hosting-static-sites\u002Fcloudfront-functions-for-redirects","CloudFront Functions for Redirects",{"path":2004,"title":2005},"\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":2007,"title":2008},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fself-hosting-static-sites","Self-Hosting Static Sites on S3, Nginx and Caddy",{"path":2010,"title":2011},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fself-hosting-static-sites\u002Fserving-a-static-site-with-caddy","Serving a Static Site with Caddy",{"path":2013,"title":2014},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fself-hosting-static-sites\u002Fserving-a-static-site-with-nginx","Serving a Static Site with Nginx",{"path":2016,"title":2017},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fself-hosting-static-sites\u002Fzero-downtime-deploys-with-symlink-swaps","Zero-Downtime Deploys with Symlink Swaps",{"path":2019,"title":2020},"\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":2022,"title":2023},"\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":2025,"title":2026},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fserverless-functions-for-static-sites","Serverless Functions for Static Sites",{"path":2028,"title":2029},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fserverless-functions-for-static-sites\u002Fnetlify-functions-vs-cloudflare-workers","Netlify Functions vs Cloudflare Workers",{"path":2031,"title":1207},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fserverless-functions-for-static-sites\u002Fprotecting-a-static-site-behind-authentication",{"path":2033,"title":2034},"\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",1789722846728]