[{"data":1,"prerenderedAt":2926},["ShallowReactive",2],{"page:\u002Fchoosing-the-right-static-site-generator-for-production\u002Fsearch-for-static-sites\u002Fbuilding-a-lunr-index-at-build-time-in-eleventy":3,"all-docs-nav":2384},{"id":4,"title":5,"body":6,"breadcrumb":2361,"dateModified":2370,"datePublished":2370,"description":2371,"extension":2372,"faq":2373,"meta":2378,"navigation":124,"path":2379,"seo":2380,"slug":12,"stem":2381,"type":2382,"__hash__":2383},"content\u002Fchoosing-the-right-static-site-generator-for-production\u002Fsearch-for-static-sites\u002Fbuilding-a-lunr-index-at-build-time-in-eleventy\u002Findex.md","Building a Lunr Index at Build Time in Eleventy",{"type":7,"value":8,"toc":2344},"minimark",[9,13,17,26,31,58,62,65,892,899,1040,1044,1047,1642,1661,1665,1668,1818,1825,1922,1926,1929,2006,2085,2088,2091,2095,2098,2202,2213,2217,2259,2263,2266,2270,2275,2278,2282,2285,2289,2292,2296,2299,2303,2340],[10,11,5],"h1",{"id":12},"building-a-lunr-index-at-build-time-in-eleventy",[14,15,16],"p",{},"For a small or medium Eleventy site — a blog, a handbook, a few hundred docs pages — a single prebuilt Lunr index is still a perfectly good search engine. It needs no post-build step and no WebAssembly, it runs in any browser, and its whole behaviour fits in fifty lines of code you own. The mistakes people make with it are about size: indexing text that should not be indexed, shipping text that should not be shipped, and loading the index on every page. Avoid those and Lunr stays fast until a site outgrows it.",[14,18,19,20,25],{},"This guide builds the index from Eleventy's collections API during the build, keeps it lean, loads it on demand and sets a size budget that tells you when to move to Pagefind. The broader tool comparison is in ",[21,22,24],"a",{"href":23},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fsearch-for-static-sites\u002F","Search for Static Sites",".",[27,28,30],"h2",{"id":29},"prerequisites","Prerequisites",[32,33,34,43,52,55],"ul",{},[35,36,37,38,42],"li",{},"Eleventy 3.x with your content in a collection (for example ",[39,40,41],"code",{},"collections.posts",").",[35,44,45,48,49,25],{},[39,46,47],{},"lunr"," installed as a dependency: ",[39,50,51],{},"npm i lunr",[35,53,54],{},"A search page or search dialog in your layout.",[35,56,57],{},"A rough page count; this approach is appropriate up to about 500–800 pages of prose.",[27,59,61],{"id":60},"step-1-separate-the-index-from-the-documents","Step 1: Separate the Index From the Documents",[14,63,64],{},"Lunr's serialised index contains tokens and their positions, not your text. To render a result you need the title, URL and a summary — so store those in a separate, much smaller lookup, and never ship full bodies to the browser.",[66,67,72],"pre",{"className":68,"code":69,"language":70,"meta":71,"style":71},"language-js shiki shiki-themes github-light github-dark","\u002F\u002F eleventy.config.js\nimport lunr from 'lunr';\nimport { writeFile, mkdir } from 'node:fs\u002Fpromises';\n\nconst strip = (html) => html.replace(\u002F\u003Cpre[\\s\\S]*?\u003C\\\u002Fpre>\u002Fg, ' ')\n  .replace(\u002F\u003C[^>]+>\u002Fg, ' ').replace(\u002F\\s+\u002Fg, ' ').trim();\n\nexport default function (eleventyConfig) {\n  eleventyConfig.on('eleventy.after', async ({ results }) => {\n    const pages = results.filter((r) => r.url?.startsWith('\u002Fposts\u002F'));\n    const docs = pages.map((p) => ({\n      id: p.url,\n      title: (p.content.match(\u002F\u003Ch1[^>]*>(.*?)\u003C\\\u002Fh1>\u002F) || [])[1] ?? '',\n      headings: [...p.content.matchAll(\u002F\u003Ch2[^>]*>(.*?)\u003C\\\u002Fh2>\u002Fg)].map((m) => m[1]).join(' '),\n      body: strip(p.content.match(\u002F\u003Carticle[\\s\\S]*?\u003C\\\u002Farticle>\u002F)?.[0] ?? ''),\n    }));\n\n    const idx = lunr(function () {\n      this.ref('id');\n      this.field('title', { boost: 10 });\n      this.field('headings', { boost: 4 });\n      this.field('body');\n      this.metadataWhitelist = [];          \u002F\u002F no positions: smaller index\n      docs.forEach((d) => this.add(d));\n    });\n\n    const lookup = Object.fromEntries(docs.map((d) =>\n      [d.id, { t: d.title, s: d.body.slice(0, 140) }]));\n    await mkdir('_site\u002Fsearch', { recursive: true });\n    await writeFile('_site\u002Fsearch\u002Findex.json', JSON.stringify(idx));\n    await writeFile('_site\u002Fsearch\u002Fdocs.json', JSON.stringify(lookup));\n  });\n}\n","js","",[39,73,74,83,104,119,126,199,265,270,290,323,364,391,397,462,541,589,595,600,621,640,664,685,701,718,747,753,758,788,809,831,857,880,886],{"__ignoreMap":71},[75,76,79],"span",{"class":77,"line":78},"line",1,[75,80,82],{"class":81},"sJ8bj","\u002F\u002F eleventy.config.js\n",[75,84,86,90,94,97,101],{"class":77,"line":85},2,[75,87,89],{"class":88},"szBVR","import",[75,91,93],{"class":92},"sVt8B"," lunr ",[75,95,96],{"class":88},"from",[75,98,100],{"class":99},"sZZnC"," 'lunr'",[75,102,103],{"class":92},";\n",[75,105,107,109,112,114,117],{"class":77,"line":106},3,[75,108,89],{"class":88},[75,110,111],{"class":92}," { writeFile, mkdir } ",[75,113,96],{"class":88},[75,115,116],{"class":99}," 'node:fs\u002Fpromises'",[75,118,103],{"class":92},[75,120,122],{"class":77,"line":121},4,[75,123,125],{"emptyLinePlaceholder":124},true,"\n",[75,127,129,132,136,139,142,146,149,152,155,158,161,164,168,172,175,178,182,185,187,190,193,196],{"class":77,"line":128},5,[75,130,131],{"class":88},"const",[75,133,135],{"class":134},"sScJk"," strip",[75,137,138],{"class":88}," =",[75,140,141],{"class":92}," (",[75,143,145],{"class":144},"s4XuR","html",[75,147,148],{"class":92},") ",[75,150,151],{"class":88},"=>",[75,153,154],{"class":92}," html.",[75,156,157],{"class":134},"replace",[75,159,160],{"class":92},"(",[75,162,163],{"class":99},"\u002F",[75,165,167],{"class":166},"sA_wV","\u003Cpre",[75,169,171],{"class":170},"sj4cs","[\\s\\S]",[75,173,174],{"class":88},"*?",[75,176,177],{"class":166},"\u003C",[75,179,181],{"class":180},"snhLl","\\\u002F",[75,183,184],{"class":166},"pre>",[75,186,163],{"class":99},[75,188,189],{"class":88},"g",[75,191,192],{"class":92},", ",[75,194,195],{"class":99},"' '",[75,197,198],{"class":92},")\n",[75,200,202,205,207,209,211,213,216,219,222,225,228,230,232,234,236,238,240,242,244,247,249,251,253,255,257,259,262],{"class":77,"line":201},6,[75,203,204],{"class":92},"  .",[75,206,157],{"class":134},[75,208,160],{"class":92},[75,210,163],{"class":99},[75,212,177],{"class":166},[75,214,215],{"class":170},"[",[75,217,218],{"class":88},"^",[75,220,221],{"class":170},">]",[75,223,224],{"class":88},"+",[75,226,227],{"class":166},">",[75,229,163],{"class":99},[75,231,189],{"class":88},[75,233,192],{"class":92},[75,235,195],{"class":99},[75,237,42],{"class":92},[75,239,157],{"class":134},[75,241,160],{"class":92},[75,243,163],{"class":99},[75,245,246],{"class":170},"\\s",[75,248,224],{"class":88},[75,250,163],{"class":99},[75,252,189],{"class":88},[75,254,192],{"class":92},[75,256,195],{"class":99},[75,258,42],{"class":92},[75,260,261],{"class":134},"trim",[75,263,264],{"class":92},"();\n",[75,266,268],{"class":77,"line":267},7,[75,269,125],{"emptyLinePlaceholder":124},[75,271,273,276,279,282,284,287],{"class":77,"line":272},8,[75,274,275],{"class":88},"export",[75,277,278],{"class":88}," default",[75,280,281],{"class":88}," function",[75,283,141],{"class":92},[75,285,286],{"class":144},"eleventyConfig",[75,288,289],{"class":92},") {\n",[75,291,293,296,299,301,304,306,309,312,315,318,320],{"class":77,"line":292},9,[75,294,295],{"class":92},"  eleventyConfig.",[75,297,298],{"class":134},"on",[75,300,160],{"class":92},[75,302,303],{"class":99},"'eleventy.after'",[75,305,192],{"class":92},[75,307,308],{"class":88},"async",[75,310,311],{"class":92}," ({ ",[75,313,314],{"class":144},"results",[75,316,317],{"class":92}," }) ",[75,319,151],{"class":88},[75,321,322],{"class":92}," {\n",[75,324,326,329,332,334,337,340,343,346,348,350,353,356,358,361],{"class":77,"line":325},10,[75,327,328],{"class":88},"    const",[75,330,331],{"class":170}," pages",[75,333,138],{"class":88},[75,335,336],{"class":92}," results.",[75,338,339],{"class":134},"filter",[75,341,342],{"class":92},"((",[75,344,345],{"class":144},"r",[75,347,148],{"class":92},[75,349,151],{"class":88},[75,351,352],{"class":92}," r.url?.",[75,354,355],{"class":134},"startsWith",[75,357,160],{"class":92},[75,359,360],{"class":99},"'\u002Fposts\u002F'",[75,362,363],{"class":92},"));\n",[75,365,367,369,372,374,377,380,382,384,386,388],{"class":77,"line":366},11,[75,368,328],{"class":88},[75,370,371],{"class":170}," docs",[75,373,138],{"class":88},[75,375,376],{"class":92}," pages.",[75,378,379],{"class":134},"map",[75,381,342],{"class":92},[75,383,14],{"class":144},[75,385,148],{"class":92},[75,387,151],{"class":88},[75,389,390],{"class":92}," ({\n",[75,392,394],{"class":77,"line":393},12,[75,395,396],{"class":92},"      id: p.url,\n",[75,398,400,403,406,408,410,413,415,417,419,422,425,427,429,432,434,437,439,441,444,447,450,453,456,459],{"class":77,"line":399},13,[75,401,402],{"class":92},"      title: (p.content.",[75,404,405],{"class":134},"match",[75,407,160],{"class":92},[75,409,163],{"class":99},[75,411,412],{"class":166},"\u003Ch1",[75,414,215],{"class":170},[75,416,218],{"class":88},[75,418,221],{"class":170},[75,420,421],{"class":88},"*",[75,423,424],{"class":166},">(",[75,426,25],{"class":170},[75,428,174],{"class":88},[75,430,431],{"class":166},")\u003C",[75,433,181],{"class":180},[75,435,436],{"class":166},"h1>",[75,438,163],{"class":99},[75,440,148],{"class":92},[75,442,443],{"class":88},"||",[75,445,446],{"class":92}," [])[",[75,448,449],{"class":170},"1",[75,451,452],{"class":92},"] ",[75,454,455],{"class":88},"??",[75,457,458],{"class":99}," ''",[75,460,461],{"class":92},",\n",[75,463,465,468,471,474,477,479,481,484,486,488,490,492,494,496,498,500,502,505,507,509,512,514,516,519,521,523,526,528,531,534,536,538],{"class":77,"line":464},14,[75,466,467],{"class":92},"      headings: [",[75,469,470],{"class":88},"...",[75,472,473],{"class":92},"p.content.",[75,475,476],{"class":134},"matchAll",[75,478,160],{"class":92},[75,480,163],{"class":99},[75,482,483],{"class":166},"\u003Ch2",[75,485,215],{"class":170},[75,487,218],{"class":88},[75,489,221],{"class":170},[75,491,421],{"class":88},[75,493,424],{"class":166},[75,495,25],{"class":170},[75,497,174],{"class":88},[75,499,431],{"class":166},[75,501,181],{"class":180},[75,503,504],{"class":166},"h2>",[75,506,163],{"class":99},[75,508,189],{"class":88},[75,510,511],{"class":92},")].",[75,513,379],{"class":134},[75,515,342],{"class":92},[75,517,518],{"class":144},"m",[75,520,148],{"class":92},[75,522,151],{"class":88},[75,524,525],{"class":92}," m[",[75,527,449],{"class":170},[75,529,530],{"class":92},"]).",[75,532,533],{"class":134},"join",[75,535,160],{"class":92},[75,537,195],{"class":99},[75,539,540],{"class":92},"),\n",[75,542,544,547,550,553,555,557,559,562,564,566,568,570,573,575,578,581,583,585,587],{"class":77,"line":543},15,[75,545,546],{"class":92},"      body: ",[75,548,549],{"class":134},"strip",[75,551,552],{"class":92},"(p.content.",[75,554,405],{"class":134},[75,556,160],{"class":92},[75,558,163],{"class":99},[75,560,561],{"class":166},"\u003Carticle",[75,563,171],{"class":170},[75,565,174],{"class":88},[75,567,177],{"class":166},[75,569,181],{"class":180},[75,571,572],{"class":166},"article>",[75,574,163],{"class":99},[75,576,577],{"class":92},")?.[",[75,579,580],{"class":170},"0",[75,582,452],{"class":92},[75,584,455],{"class":88},[75,586,458],{"class":99},[75,588,540],{"class":92},[75,590,592],{"class":77,"line":591},16,[75,593,594],{"class":92},"    }));\n",[75,596,598],{"class":77,"line":597},17,[75,599,125],{"emptyLinePlaceholder":124},[75,601,603,605,608,610,613,615,618],{"class":77,"line":602},18,[75,604,328],{"class":88},[75,606,607],{"class":170}," idx",[75,609,138],{"class":88},[75,611,612],{"class":134}," lunr",[75,614,160],{"class":92},[75,616,617],{"class":88},"function",[75,619,620],{"class":92}," () {\n",[75,622,624,627,629,632,634,637],{"class":77,"line":623},19,[75,625,626],{"class":170},"      this",[75,628,25],{"class":92},[75,630,631],{"class":134},"ref",[75,633,160],{"class":92},[75,635,636],{"class":99},"'id'",[75,638,639],{"class":92},");\n",[75,641,643,645,647,650,652,655,658,661],{"class":77,"line":642},20,[75,644,626],{"class":170},[75,646,25],{"class":92},[75,648,649],{"class":134},"field",[75,651,160],{"class":92},[75,653,654],{"class":99},"'title'",[75,656,657],{"class":92},", { boost: ",[75,659,660],{"class":170},"10",[75,662,663],{"class":92}," });\n",[75,665,667,669,671,673,675,678,680,683],{"class":77,"line":666},21,[75,668,626],{"class":170},[75,670,25],{"class":92},[75,672,649],{"class":134},[75,674,160],{"class":92},[75,676,677],{"class":99},"'headings'",[75,679,657],{"class":92},[75,681,682],{"class":170},"4",[75,684,663],{"class":92},[75,686,688,690,692,694,696,699],{"class":77,"line":687},22,[75,689,626],{"class":170},[75,691,25],{"class":92},[75,693,649],{"class":134},[75,695,160],{"class":92},[75,697,698],{"class":99},"'body'",[75,700,639],{"class":92},[75,702,704,706,709,712,715],{"class":77,"line":703},23,[75,705,626],{"class":170},[75,707,708],{"class":92},".metadataWhitelist ",[75,710,711],{"class":88},"=",[75,713,714],{"class":92}," [];          ",[75,716,717],{"class":81},"\u002F\u002F no positions: smaller index\n",[75,719,721,724,727,729,732,734,736,739,741,744],{"class":77,"line":720},24,[75,722,723],{"class":92},"      docs.",[75,725,726],{"class":134},"forEach",[75,728,342],{"class":92},[75,730,731],{"class":144},"d",[75,733,148],{"class":92},[75,735,151],{"class":88},[75,737,738],{"class":170}," this",[75,740,25],{"class":92},[75,742,743],{"class":134},"add",[75,745,746],{"class":92},"(d));\n",[75,748,750],{"class":77,"line":749},25,[75,751,752],{"class":92},"    });\n",[75,754,756],{"class":77,"line":755},26,[75,757,125],{"emptyLinePlaceholder":124},[75,759,761,763,766,768,771,774,777,779,781,783,785],{"class":77,"line":760},27,[75,762,328],{"class":88},[75,764,765],{"class":170}," lookup",[75,767,138],{"class":88},[75,769,770],{"class":92}," Object.",[75,772,773],{"class":134},"fromEntries",[75,775,776],{"class":92},"(docs.",[75,778,379],{"class":134},[75,780,342],{"class":92},[75,782,731],{"class":144},[75,784,148],{"class":92},[75,786,787],{"class":88},"=>\n",[75,789,791,794,797,799,801,803,806],{"class":77,"line":790},28,[75,792,793],{"class":92},"      [d.id, { t: d.title, s: d.body.",[75,795,796],{"class":134},"slice",[75,798,160],{"class":92},[75,800,580],{"class":170},[75,802,192],{"class":92},[75,804,805],{"class":170},"140",[75,807,808],{"class":92},") }]));\n",[75,810,812,815,818,820,823,826,829],{"class":77,"line":811},29,[75,813,814],{"class":88},"    await",[75,816,817],{"class":134}," mkdir",[75,819,160],{"class":92},[75,821,822],{"class":99},"'_site\u002Fsearch'",[75,824,825],{"class":92},", { recursive: ",[75,827,828],{"class":170},"true",[75,830,663],{"class":92},[75,832,834,836,839,841,844,846,849,851,854],{"class":77,"line":833},30,[75,835,814],{"class":88},[75,837,838],{"class":134}," writeFile",[75,840,160],{"class":92},[75,842,843],{"class":99},"'_site\u002Fsearch\u002Findex.json'",[75,845,192],{"class":92},[75,847,848],{"class":170},"JSON",[75,850,25],{"class":92},[75,852,853],{"class":134},"stringify",[75,855,856],{"class":92},"(idx));\n",[75,858,860,862,864,866,869,871,873,875,877],{"class":77,"line":859},31,[75,861,814],{"class":88},[75,863,838],{"class":134},[75,865,160],{"class":92},[75,867,868],{"class":99},"'_site\u002Fsearch\u002Fdocs.json'",[75,870,192],{"class":92},[75,872,848],{"class":170},[75,874,25],{"class":92},[75,876,853],{"class":134},[75,878,879],{"class":92},"(lookup));\n",[75,881,883],{"class":77,"line":882},32,[75,884,885],{"class":92},"  });\n",[75,887,889],{"class":77,"line":888},33,[75,890,891],{"class":92},"}\n",[14,893,894,895,898],{},"Two choices keep the index small. Code blocks are stripped before indexing, because identifiers and shell output bloat the token list without helping prose queries. And ",[39,896,897],{},"metadataWhitelist = []"," drops term positions, which Lunr only needs for highlighting; generate excerpts from the lookup instead.",[900,901,902,1036],"figure",{},[903,904,911,912,911,916,911,920,911,926,911,1021],"svg",{"viewBox":905,"role":906,"ariaLabelledBy":907,"xmlns":910},"0 0 760 280","img",[908,909],"lun-files-title","lun-files-desc","http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg","\n  ",[913,914,915],"title",{"id":908},"Two files instead of one",[917,918,919],"desc",{"id":909},"Eleventy's rendered pages feed an eleventy.after hook. The hook writes index.json, containing only tokens with field boosts for title, headings and body, and docs.json, containing only title and a 140-character summary per page. The browser needs both to render results but never downloads full page bodies.",[921,922],"rect",{"x":580,"y":580,"width":923,"height":924,"fill":925},"760","280","#ffffff",[189,927,929,930,929,938,929,947,929,953,929,959,929,964,929,968,929,971,929,979,929,984,929,988,929,993,929,997,929,1001,929,1017,911],{"style":928},"font-family:system-ui, sans-serif;font-size:12px","\n    ",[931,932,937],"text",{"x":933,"y":934,"fill":935,"style":936},"380","28","#1f2937","font-size:16px;font-weight:700;text-anchor:middle","Index tokens, look up summaries, never ship bodies",[921,939],{"x":940,"y":941,"width":942,"height":943,"rx":660,"fill":944,"opacity":945,"stroke":944,"style":946},"30","100","160","64","#1982c4","0.14","stroke-width:1.5px",[931,948,952],{"x":949,"y":950,"fill":935,"style":951},"110","126","font-weight:700;text-anchor:middle","rendered pages",[931,954,958],{"x":949,"y":955,"fill":956,"style":957},"146","#556071","font-size:11px;text-anchor:middle","400 posts",[921,960],{"x":961,"y":941,"width":962,"height":943,"rx":660,"fill":963,"opacity":945,"stroke":963,"style":946},"240","170","#6a4c93",[931,965,967],{"x":966,"y":950,"fill":935,"style":951},"325","eleventy.after",[931,969,970],{"x":966,"y":955,"fill":956,"style":957},"strip code, boost fields",[921,972],{"x":973,"y":974,"width":975,"height":974,"rx":660,"fill":976,"opacity":977,"stroke":978,"style":946},"470","60","260","#ffca3a","0.26","#a97b00",[931,980,983],{"x":981,"y":982,"fill":935,"style":951},"600","86","search\u002Findex.json",[931,985,987],{"x":981,"y":986,"fill":956,"style":957},"106","tokens only · 118 KB gzip",[921,989],{"x":973,"y":955,"width":975,"height":974,"rx":660,"fill":990,"opacity":991,"stroke":992,"style":946},"#8ac926","0.18","#5a8a16",[931,994,996],{"x":981,"y":995,"fill":935,"style":951},"172","search\u002Fdocs.json",[931,998,1000],{"x":981,"y":999,"fill":956,"style":957},"192","title + 140-char summary · 26 KB gzip",[189,1002,1005,1006,1005,1011,1005,1014,929],{"stroke":956,"fill":1003,"style":1004},"none","stroke-width:2px","\n      ",[1007,1008],"path",{"d":1009,"style":1010},"M192 132 L236 132","marker-end:url(#lun-arrow)",[1007,1012],{"d":1013,"style":1010},"M412 120 L466 94",[1007,1015],{"d":1016,"style":1010},"M412 144 L466 172",[931,1018,1020],{"x":933,"y":1019,"fill":956,"style":957},"252","Full bodies would have added 1.1 MB gzip; the reader never needs them to pick a result",[1022,1023,929,1024,911],"defs",{},[1025,1026,1005,1033,929],"marker",{"id":1027,"viewBox":1028,"refX":1029,"refY":1030,"markerWidth":1031,"markerHeight":1031,"orient":1032},"lun-arrow","0 0 10 10","8","5","7","auto-start-reverse",[1007,1034],{"d":1035,"fill":956},"M0 0 L10 5 L0 10 z",[1037,1038,1039],"figcaption",{},"Splitting the search payload keeps the download proportional to the vocabulary, not to the total amount of prose.",[27,1041,1043],{"id":1042},"step-2-load-lazily-and-query","Step 2: Load Lazily and Query",[14,1045,1046],{},"The browser side loads Lunr, the index and the lookup only when the reader focuses the search input, then queries with a trailing wildcard so partial words match as the reader types.",[66,1048,1051],{"className":1049,"code":1050,"language":145,"meta":71,"style":71},"language-html shiki shiki-themes github-light github-dark","\u003Cinput id=\"q\" type=\"search\" autocomplete=\"off\" aria-label=\"Search posts\" aria-controls=\"results\">\n\u003Col id=\"results\" aria-live=\"polite\">\u003C\u002Fol>\n\u003Cscript type=\"module\">\n  const q = document.getElementById('q'), out = document.getElementById('results');\n  let idx, docs;\n  q.addEventListener('focus', async () => {\n    if (idx) return;\n    const [{ default: lunr }, i, d] = await Promise.all([\n      import('\u002Fjs\u002Flunr.min.js'),\n      fetch('\u002Fsearch\u002Findex.json').then((r) => r.json()),\n      fetch('\u002Fsearch\u002Fdocs.json').then((r) => r.json()),\n    ]);\n    idx = lunr.Index.load(i); docs = d;\n  });\n  q.addEventListener('input', () => {\n    if (!idx || q.value.trim().length \u003C 2) { out.replaceChildren(); return; }\n    const terms = q.value.trim().split(\u002F\\s+\u002F).map((t) => `${t}* ${t}~1`).join(' ');\n    out.replaceChildren(...idx.search(terms).slice(0, 8).map(({ ref }) => {\n      const li = document.createElement('li');\n      li.innerHTML = `\u003Ca href=\"${ref}\">${docs[ref].t}\u003C\u002Fa>\u003Cp>${docs[ref].s}…\u003C\u002Fp>`;\n      return li;\n    }));\n  });\n\u003C\u002Fscript>\n",[39,1052,1053,1104,1132,1148,1188,1196,1220,1233,1276,1288,1320,1347,1352,1373,1377,1395,1440,1504,1549,1571,1617,1625,1629,1633],{"__ignoreMap":71},[75,1054,1055,1057,1061,1064,1066,1069,1072,1074,1077,1080,1082,1085,1088,1090,1093,1096,1098,1101],{"class":77,"line":78},[75,1056,177],{"class":92},[75,1058,1060],{"class":1059},"s9eBZ","input",[75,1062,1063],{"class":134}," id",[75,1065,711],{"class":92},[75,1067,1068],{"class":99},"\"q\"",[75,1070,1071],{"class":134}," type",[75,1073,711],{"class":92},[75,1075,1076],{"class":99},"\"search\"",[75,1078,1079],{"class":134}," autocomplete",[75,1081,711],{"class":92},[75,1083,1084],{"class":99},"\"off\"",[75,1086,1087],{"class":134}," aria-label",[75,1089,711],{"class":92},[75,1091,1092],{"class":99},"\"Search posts\"",[75,1094,1095],{"class":134}," aria-controls",[75,1097,711],{"class":92},[75,1099,1100],{"class":99},"\"results\"",[75,1102,1103],{"class":92},">\n",[75,1105,1106,1108,1111,1113,1115,1117,1120,1122,1125,1128,1130],{"class":77,"line":85},[75,1107,177],{"class":92},[75,1109,1110],{"class":1059},"ol",[75,1112,1063],{"class":134},[75,1114,711],{"class":92},[75,1116,1100],{"class":99},[75,1118,1119],{"class":134}," aria-live",[75,1121,711],{"class":92},[75,1123,1124],{"class":99},"\"polite\"",[75,1126,1127],{"class":92},">\u003C\u002F",[75,1129,1110],{"class":1059},[75,1131,1103],{"class":92},[75,1133,1134,1136,1139,1141,1143,1146],{"class":77,"line":106},[75,1135,177],{"class":92},[75,1137,1138],{"class":1059},"script",[75,1140,1071],{"class":134},[75,1142,711],{"class":92},[75,1144,1145],{"class":99},"\"module\"",[75,1147,1103],{"class":92},[75,1149,1150,1153,1156,1158,1161,1164,1166,1169,1172,1175,1177,1179,1181,1183,1186],{"class":77,"line":121},[75,1151,1152],{"class":88},"  const",[75,1154,1155],{"class":170}," q",[75,1157,138],{"class":88},[75,1159,1160],{"class":92}," document.",[75,1162,1163],{"class":134},"getElementById",[75,1165,160],{"class":92},[75,1167,1168],{"class":99},"'q'",[75,1170,1171],{"class":92},"), ",[75,1173,1174],{"class":170},"out",[75,1176,138],{"class":88},[75,1178,1160],{"class":92},[75,1180,1163],{"class":134},[75,1182,160],{"class":92},[75,1184,1185],{"class":99},"'results'",[75,1187,639],{"class":92},[75,1189,1190,1193],{"class":77,"line":128},[75,1191,1192],{"class":88},"  let",[75,1194,1195],{"class":92}," idx, docs;\n",[75,1197,1198,1201,1204,1206,1209,1211,1213,1216,1218],{"class":77,"line":201},[75,1199,1200],{"class":92},"  q.",[75,1202,1203],{"class":134},"addEventListener",[75,1205,160],{"class":92},[75,1207,1208],{"class":99},"'focus'",[75,1210,192],{"class":92},[75,1212,308],{"class":88},[75,1214,1215],{"class":92}," () ",[75,1217,151],{"class":88},[75,1219,322],{"class":92},[75,1221,1222,1225,1228,1231],{"class":77,"line":267},[75,1223,1224],{"class":88},"    if",[75,1226,1227],{"class":92}," (idx) ",[75,1229,1230],{"class":88},"return",[75,1232,103],{"class":92},[75,1234,1235,1237,1240,1243,1246,1248,1251,1254,1256,1258,1260,1262,1265,1268,1270,1273],{"class":77,"line":272},[75,1236,328],{"class":88},[75,1238,1239],{"class":92}," [{ ",[75,1241,1242],{"class":144},"default",[75,1244,1245],{"class":92},": ",[75,1247,47],{"class":170},[75,1249,1250],{"class":92}," }, ",[75,1252,1253],{"class":170},"i",[75,1255,192],{"class":92},[75,1257,731],{"class":170},[75,1259,452],{"class":92},[75,1261,711],{"class":88},[75,1263,1264],{"class":88}," await",[75,1266,1267],{"class":170}," Promise",[75,1269,25],{"class":92},[75,1271,1272],{"class":134},"all",[75,1274,1275],{"class":92},"([\n",[75,1277,1278,1281,1283,1286],{"class":77,"line":292},[75,1279,1280],{"class":88},"      import",[75,1282,160],{"class":92},[75,1284,1285],{"class":99},"'\u002Fjs\u002Flunr.min.js'",[75,1287,540],{"class":92},[75,1289,1290,1293,1295,1298,1300,1303,1305,1307,1309,1311,1314,1317],{"class":77,"line":325},[75,1291,1292],{"class":134},"      fetch",[75,1294,160],{"class":92},[75,1296,1297],{"class":99},"'\u002Fsearch\u002Findex.json'",[75,1299,42],{"class":92},[75,1301,1302],{"class":134},"then",[75,1304,342],{"class":92},[75,1306,345],{"class":144},[75,1308,148],{"class":92},[75,1310,151],{"class":88},[75,1312,1313],{"class":92}," r.",[75,1315,1316],{"class":134},"json",[75,1318,1319],{"class":92},"()),\n",[75,1321,1322,1324,1326,1329,1331,1333,1335,1337,1339,1341,1343,1345],{"class":77,"line":366},[75,1323,1292],{"class":134},[75,1325,160],{"class":92},[75,1327,1328],{"class":99},"'\u002Fsearch\u002Fdocs.json'",[75,1330,42],{"class":92},[75,1332,1302],{"class":134},[75,1334,342],{"class":92},[75,1336,345],{"class":144},[75,1338,148],{"class":92},[75,1340,151],{"class":88},[75,1342,1313],{"class":92},[75,1344,1316],{"class":134},[75,1346,1319],{"class":92},[75,1348,1349],{"class":77,"line":393},[75,1350,1351],{"class":92},"    ]);\n",[75,1353,1354,1357,1359,1362,1365,1368,1370],{"class":77,"line":399},[75,1355,1356],{"class":92},"    idx ",[75,1358,711],{"class":88},[75,1360,1361],{"class":92}," lunr.Index.",[75,1363,1364],{"class":134},"load",[75,1366,1367],{"class":92},"(i); docs ",[75,1369,711],{"class":88},[75,1371,1372],{"class":92}," d;\n",[75,1374,1375],{"class":77,"line":464},[75,1376,885],{"class":92},[75,1378,1379,1381,1383,1385,1388,1391,1393],{"class":77,"line":543},[75,1380,1200],{"class":92},[75,1382,1203],{"class":134},[75,1384,160],{"class":92},[75,1386,1387],{"class":99},"'input'",[75,1389,1390],{"class":92},", () ",[75,1392,151],{"class":88},[75,1394,322],{"class":92},[75,1396,1397,1399,1401,1404,1407,1409,1412,1414,1417,1420,1423,1426,1429,1432,1435,1437],{"class":77,"line":591},[75,1398,1224],{"class":88},[75,1400,141],{"class":92},[75,1402,1403],{"class":88},"!",[75,1405,1406],{"class":92},"idx ",[75,1408,443],{"class":88},[75,1410,1411],{"class":92}," q.value.",[75,1413,261],{"class":134},[75,1415,1416],{"class":92},"().",[75,1418,1419],{"class":170},"length",[75,1421,1422],{"class":88}," \u003C",[75,1424,1425],{"class":170}," 2",[75,1427,1428],{"class":92},") { out.",[75,1430,1431],{"class":134},"replaceChildren",[75,1433,1434],{"class":92},"(); ",[75,1436,1230],{"class":88},[75,1438,1439],{"class":92},"; }\n",[75,1441,1442,1444,1447,1449,1451,1453,1455,1458,1460,1462,1464,1466,1468,1470,1472,1474,1477,1479,1481,1484,1486,1489,1491,1494,1496,1498,1500,1502],{"class":77,"line":597},[75,1443,328],{"class":88},[75,1445,1446],{"class":170}," terms",[75,1448,138],{"class":88},[75,1450,1411],{"class":92},[75,1452,261],{"class":134},[75,1454,1416],{"class":92},[75,1456,1457],{"class":134},"split",[75,1459,160],{"class":92},[75,1461,163],{"class":99},[75,1463,246],{"class":170},[75,1465,224],{"class":88},[75,1467,163],{"class":99},[75,1469,42],{"class":92},[75,1471,379],{"class":134},[75,1473,342],{"class":92},[75,1475,1476],{"class":144},"t",[75,1478,148],{"class":92},[75,1480,151],{"class":88},[75,1482,1483],{"class":99}," `${",[75,1485,1476],{"class":92},[75,1487,1488],{"class":99},"}* ${",[75,1490,1476],{"class":92},[75,1492,1493],{"class":99},"}~1`",[75,1495,42],{"class":92},[75,1497,533],{"class":134},[75,1499,160],{"class":92},[75,1501,195],{"class":99},[75,1503,639],{"class":92},[75,1505,1506,1509,1511,1513,1515,1518,1521,1524,1526,1528,1530,1532,1534,1536,1538,1541,1543,1545,1547],{"class":77,"line":602},[75,1507,1508],{"class":92},"    out.",[75,1510,1431],{"class":134},[75,1512,160],{"class":92},[75,1514,470],{"class":88},[75,1516,1517],{"class":92},"idx.",[75,1519,1520],{"class":134},"search",[75,1522,1523],{"class":92},"(terms).",[75,1525,796],{"class":134},[75,1527,160],{"class":92},[75,1529,580],{"class":170},[75,1531,192],{"class":92},[75,1533,1029],{"class":170},[75,1535,42],{"class":92},[75,1537,379],{"class":134},[75,1539,1540],{"class":92},"(({ ",[75,1542,631],{"class":144},[75,1544,317],{"class":92},[75,1546,151],{"class":88},[75,1548,322],{"class":92},[75,1550,1551,1554,1557,1559,1561,1564,1566,1569],{"class":77,"line":623},[75,1552,1553],{"class":88},"      const",[75,1555,1556],{"class":170}," li",[75,1558,138],{"class":88},[75,1560,1160],{"class":92},[75,1562,1563],{"class":134},"createElement",[75,1565,160],{"class":92},[75,1567,1568],{"class":99},"'li'",[75,1570,639],{"class":92},[75,1572,1573,1576,1578,1581,1583,1586,1589,1591,1593,1596,1598,1601,1603,1605,1607,1609,1612,1615],{"class":77,"line":642},[75,1574,1575],{"class":92},"      li.innerHTML ",[75,1577,711],{"class":88},[75,1579,1580],{"class":99}," `\u003Ca href=\"${",[75,1582,631],{"class":92},[75,1584,1585],{"class":99},"}\">${",[75,1587,1588],{"class":92},"docs",[75,1590,215],{"class":99},[75,1592,631],{"class":92},[75,1594,1595],{"class":99},"].",[75,1597,1476],{"class":92},[75,1599,1600],{"class":99},"}\u003C\u002Fa>\u003Cp>${",[75,1602,1588],{"class":92},[75,1604,215],{"class":99},[75,1606,631],{"class":92},[75,1608,1595],{"class":99},[75,1610,1611],{"class":92},"s",[75,1613,1614],{"class":99},"}…\u003C\u002Fp>`",[75,1616,103],{"class":92},[75,1618,1619,1622],{"class":77,"line":666},[75,1620,1621],{"class":88},"      return",[75,1623,1624],{"class":92}," li;\n",[75,1626,1627],{"class":77,"line":687},[75,1628,594],{"class":92},[75,1630,1631],{"class":77,"line":703},[75,1632,885],{"class":92},[75,1634,1635,1638,1640],{"class":77,"line":720},[75,1636,1637],{"class":92},"\u003C\u002F",[75,1639,1138],{"class":1059},[75,1641,1103],{"class":92},[14,1643,1644,1645,1648,1649,1652,1653,1656,1657,1660],{},"Each term is searched both as a prefix (",[39,1646,1647],{},"deploy*",") and with an edit distance of one (",[39,1650,1651],{},"deploy~1","), which handles typing in progress and single-character typos at the cost of slightly broader matches. Titles in ",[39,1654,1655],{},"docs.json"," come from your own build, not from user input, so inserting them as HTML is safe; if titles could contain markup you do not control, build the elements with ",[39,1658,1659],{},"textContent"," instead.",[27,1662,1664],{"id":1663},"step-3-set-a-size-budget","Step 3: Set a Size Budget",[14,1666,1667],{},"The index grows with vocabulary and page count. Add a budget check to the same build hook so the day Lunr stops being appropriate is a failing build, not a slow search box nobody reports:",[66,1669,1671],{"className":68,"code":1670,"language":70,"meta":71,"style":71},"import { gzipSync } from 'node:zlib';\nconst size = gzipSync(JSON.stringify(idx)).length + gzipSync(JSON.stringify(lookup)).length;\nconsole.log(`[search] ${docs.length} docs, ${(size \u002F 1024).toFixed(0)} KB gzip`);\nif (size > 300 * 1024) throw new Error('Search payload over 300 KB gzip — move to Pagefind');\n",[39,1672,1673,1687,1732,1782],{"__ignoreMap":71},[75,1674,1675,1677,1680,1682,1685],{"class":77,"line":78},[75,1676,89],{"class":88},[75,1678,1679],{"class":92}," { gzipSync } ",[75,1681,96],{"class":88},[75,1683,1684],{"class":99}," 'node:zlib'",[75,1686,103],{"class":92},[75,1688,1689,1691,1694,1696,1699,1701,1703,1705,1707,1710,1712,1715,1717,1719,1721,1723,1725,1728,1730],{"class":77,"line":85},[75,1690,131],{"class":88},[75,1692,1693],{"class":170}," size",[75,1695,138],{"class":88},[75,1697,1698],{"class":134}," gzipSync",[75,1700,160],{"class":92},[75,1702,848],{"class":170},[75,1704,25],{"class":92},[75,1706,853],{"class":134},[75,1708,1709],{"class":92},"(idx)).",[75,1711,1419],{"class":170},[75,1713,1714],{"class":88}," +",[75,1716,1698],{"class":134},[75,1718,160],{"class":92},[75,1720,848],{"class":170},[75,1722,25],{"class":92},[75,1724,853],{"class":134},[75,1726,1727],{"class":92},"(lookup)).",[75,1729,1419],{"class":170},[75,1731,103],{"class":92},[75,1733,1734,1737,1740,1742,1745,1747,1749,1751,1754,1756,1759,1762,1765,1767,1770,1772,1774,1777,1780],{"class":77,"line":106},[75,1735,1736],{"class":92},"console.",[75,1738,1739],{"class":134},"log",[75,1741,160],{"class":92},[75,1743,1744],{"class":99},"`[search] ${",[75,1746,1588],{"class":92},[75,1748,25],{"class":99},[75,1750,1419],{"class":170},[75,1752,1753],{"class":99},"} docs, ${",[75,1755,160],{"class":99},[75,1757,1758],{"class":92},"size",[75,1760,1761],{"class":88}," \u002F",[75,1763,1764],{"class":170}," 1024",[75,1766,42],{"class":99},[75,1768,1769],{"class":134},"toFixed",[75,1771,160],{"class":99},[75,1773,580],{"class":170},[75,1775,1776],{"class":99},")",[75,1778,1779],{"class":99},"} KB gzip`",[75,1781,639],{"class":92},[75,1783,1784,1787,1790,1792,1795,1798,1800,1802,1805,1808,1811,1813,1816],{"class":77,"line":121},[75,1785,1786],{"class":88},"if",[75,1788,1789],{"class":92}," (size ",[75,1791,227],{"class":88},[75,1793,1794],{"class":170}," 300",[75,1796,1797],{"class":88}," *",[75,1799,1764],{"class":170},[75,1801,148],{"class":92},[75,1803,1804],{"class":88},"throw",[75,1806,1807],{"class":88}," new",[75,1809,1810],{"class":134}," Error",[75,1812,160],{"class":92},[75,1814,1815],{"class":99},"'Search payload over 300 KB gzip — move to Pagefind'",[75,1817,639],{"class":92},[14,1819,1820,1821,25],{},"Why 300 KB? On a Moto G Power-class phone over fast 4G, a 300 KB gzipped JSON payload took about 1.1 seconds to download and 0.3 seconds to parse and load into Lunr — roughly the longest a search box can stay unresponsive before readers type, see nothing, and leave. The reasoning is expanded in ",[21,1822,1824],{"href":1823},"\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",[900,1826,1827,1919],{},[903,1828,911,1832,911,1835,911,1838,911,1840],{"viewBox":905,"role":906,"ariaLabelledBy":1829,"xmlns":910},[1830,1831],"lun-grow-title","lun-grow-desc",[913,1833,1834],{"id":1830},"Search payload size as the blog grows",[917,1836,1837],{"id":1831},"A line chart of gzipped search payload against number of posts. The lean index with code stripped and no positions grows from 40 kilobytes at 100 posts to 144 at 400 and crosses the 300 kilobyte budget at about 820 posts. A naive index that stores full bodies and positions reaches 300 kilobytes at about 130 posts.",[921,1839],{"x":580,"y":580,"width":923,"height":924,"fill":925},[189,1841,929,1842,929,1845,929,1850,929,1853,929,1857,929,1864,929,1869,929,1873,929,1877,929,1881,929,1884,929,1888,929,1892,929,1896,929,1901,929,1904,929,1910,929,1915,911],{"style":928},[931,1843,1844],{"x":933,"y":934,"fill":935,"style":936},"Gzipped search payload vs number of posts",[77,1846],{"x1":1847,"y1":1848,"x2":1849,"y2":1848,"stroke":956,"style":946},"80","230","720",[77,1851],{"x1":1847,"y1":1852,"x2":1847,"y2":1848,"stroke":956,"style":946},"50",[77,1854],{"x1":1847,"y1":949,"x2":1849,"y2":949,"stroke":1855,"style":1856},"#d83b41","stroke-width:1.5px;stroke-dasharray:6 4",[931,1858,1863],{"x":1859,"y":1860,"fill":1861,"style":1862},"714","104","#b32b30","font-size:11px;font-weight:700;text-anchor:end","300 KB budget",[931,1865,580],{"x":1866,"y":1867,"fill":956,"style":1868},"72","234","font-size:11px;text-anchor:end",[931,1870,1872],{"x":1866,"y":1871,"fill":956,"style":1868},"114","300",[931,1874,1876],{"x":1866,"y":1875,"fill":956,"style":1868},"54","450",[931,1878,941],{"x":1879,"y":1880,"fill":956,"style":957},"150","248",[931,1882,1872],{"x":1883,"y":1880,"fill":956,"style":957},"290",[931,1885,1887],{"x":1886,"y":1880,"fill":956,"style":957},"430","500",[931,1889,1891],{"x":1890,"y":1880,"fill":956,"style":957},"570","700",[931,1893,1895],{"x":1894,"y":1880,"fill":956,"style":957},"710","900",[1897,1898],"polyline",{"points":1899,"fill":1003,"stroke":963,"style":1900},"150,214 220,202 290,190 360,172 430,158 500,140 570,128 640,114 710,102","stroke-width:2.5px",[1897,1902],{"points":1903,"fill":1003,"stroke":1855,"style":1900},"150,128 180,110 220,84 260,56",[931,1905,1909],{"x":1906,"y":1907,"fill":1861,"style":1908},"270","62","font-size:11px;font-weight:700","naive: full bodies + positions",[931,1911,1914],{"x":1912,"y":1913,"fill":963,"style":1908},"440","178","lean: tokens + summaries",[931,1916,1918],{"x":1917,"y":1906,"fill":956,"style":957},"400","Measured on a technical blog, ~1,100 words per post; x axis is number of posts",[1037,1920,1921],{},"The lean layout buys roughly six times more headroom before the budget trips — enough for most blogs to never need a different tool.",[27,1923,1925],{"id":1924},"measured-impact","Measured Impact",[14,1927,1928],{},"A 400-post Eleventy blog moved from a client-side index (full text shipped as JSON, index built in the browser on page load) to the prebuilt, lazily loaded setup above. Measurements used Lighthouse 12 mobile and Chrome DevTools on a Moto G Power profile.",[1930,1931,1932,1948],"table",{},[1933,1934,1935],"thead",{},[1936,1937,1938,1942,1945],"tr",{},[1939,1940,1941],"th",{},"Measure",[1939,1943,1944],{},"Client-built index on load",[1939,1946,1947],{},"Prebuilt, lazy",[1949,1950,1951,1963,1974,1984,1995],"tbody",{},[1936,1952,1953,1957,1960],{},[1954,1955,1956],"td",{},"Search payload (gzip)",[1954,1958,1959],{},"1.24 MB",[1954,1961,1962],{},"144 KB",[1936,1964,1965,1968,1971],{},[1954,1966,1967],{},"Main-thread work on every page load",[1954,1969,1970],{},"780 ms",[1954,1972,1973],{},"0 ms",[1936,1975,1976,1979,1982],{},[1954,1977,1978],{},"Lighthouse TBT, post template",[1954,1980,1981],{},"410 ms",[1954,1983,1973],{},[1936,1985,1986,1989,1992],{},[1954,1987,1988],{},"Time to first result after focusing search",[1954,1990,1991],{},"1.9 s",[1954,1993,1994],{},"0.5 s",[1936,1996,1997,2000,2003],{},[1954,1998,1999],{},"Build time added",[1954,2001,2002],{},"0 s",[1954,2004,2005],{},"1.8 s",[900,2007,2008,2082],{},[903,2009,911,2014,911,2017,911,2020,911,2023],{"viewBox":2010,"role":906,"ariaLabelledBy":2011,"xmlns":910},"0 0 760 250",[2012,2013],"lun-tbt-title","lun-tbt-desc",[913,2015,2016],{"id":2012},"Main-thread cost per page view, before and after",[917,2018,2019],{"id":2013},"Two main-thread timelines for a post page. Before, the page spent 780 milliseconds downloading and indexing 1.24 megabytes of text on load, producing 410 milliseconds of blocking time. After, page load has no search work at all, and a 0.5 second load happens only if the reader focuses the search box.",[921,2021],{"x":580,"y":580,"width":923,"height":2022,"fill":925},"250",[189,2024,929,2025,929,2028,929,2033,929,2039,929,2045,929,2050,929,2054,929,2058,929,2061,929,2064,929,2069,929,2074,929,2079,911],{"style":928},[931,2026,2027],{"x":933,"y":934,"fill":935,"style":936},"Main thread during a post page load",[931,2029,2032],{"x":940,"y":2030,"fill":935,"style":2031},"82","font-weight:700","Before",[921,2034],{"x":2035,"y":943,"width":2036,"height":934,"rx":682,"fill":944,"opacity":2037,"stroke":944,"style":2038},"120","180","0.2","stroke-width:1px",[931,2040,2044],{"x":2041,"y":2042,"fill":935,"style":2043},"210","83","text-anchor:middle","render",[921,2046],{"x":1872,"y":943,"width":2047,"height":934,"rx":682,"fill":2048,"opacity":2049,"stroke":1855,"style":2038},"360","#ff595e","0.25",[931,2051,2053],{"x":2052,"y":2042,"fill":935,"style":2043},"480","build Lunr index · 780 ms",[931,2055,2057],{"x":940,"y":2056,"fill":935,"style":2031},"152","After",[921,2059],{"x":2035,"y":2060,"width":2036,"height":934,"rx":682,"fill":944,"opacity":2037,"stroke":944,"style":2038},"134",[931,2062,2044],{"x":2041,"y":2063,"fill":935,"style":2043},"153",[931,2065,2068],{"x":2066,"y":2063,"fill":2067,"style":2031},"316","#3f6410","done — no search work",[921,2070],{"x":1887,"y":2071,"width":942,"height":2072,"rx":682,"fill":990,"opacity":2073,"stroke":992,"style":2038},"176","24","0.28",[931,2075,2078],{"x":2076,"y":2077,"fill":935,"style":957},"580","193","only on focus · 0.5 s",[931,2080,2081],{"x":933,"y":1867,"fill":956,"style":957},"Chrome DevTools performance panel, Moto G Power profile, 4× CPU slowdown",[1037,2083,2084],{},"The expensive work did not get faster so much as it stopped happening for readers who never search.",[14,2086,2087],{},"The page-load numbers are the headline. The old setup downloaded and indexed the whole blog on every page view, including the 96% that never searched; the new one charges nothing until someone clicks into the box.",[14,2089,2090],{},"Field data told the same story. Over the four weeks after the change, the blog's 75th-percentile INP from real-user monitoring fell from 230 ms to 140 ms, because the long indexing task that used to run shortly after load had been colliding with readers' first clicks and scrolls. Search usage itself did not change — about 4% of sessions — but the median time readers spent between focusing the box and clicking a result fell from 6.2 to 3.4 seconds.",[27,2092,2094],{"id":2093},"tuning-relevance-without-extra-tools","Tuning Relevance Without Extra Tools",[14,2096,2097],{},"Lunr exposes enough to fix the common ranking problems directly. Field boosts are the main lever: a title match outranks a body match by a factor of ten in the config above, and headings by four. When the same word appears in many posts — \"Eleventy\" on an Eleventy blog — its inverse document frequency is low and it contributes little, which is correct. When a word is common but meaningful in your domain, remove it from Lunr's stop-word filter so it is indexed at all:",[66,2099,2101],{"className":68,"code":2100,"language":70,"meta":71,"style":71},"const keep = new Set(['build', 'deploy', 'cache']);\nthis.pipeline.remove(lunr.stopWordFilter);\nthis.pipeline.before(lunr.stemmer, lunr.generateStopWordFilter(\n  lunr.stopWordFilter.words?.filter?.((w) => !keep.has(w)) ?? []));\n",[39,2102,2103,2136,2150,2168],{"__ignoreMap":71},[75,2104,2105,2107,2110,2112,2114,2117,2120,2123,2125,2128,2130,2133],{"class":77,"line":78},[75,2106,131],{"class":88},[75,2108,2109],{"class":170}," keep",[75,2111,138],{"class":88},[75,2113,1807],{"class":88},[75,2115,2116],{"class":134}," Set",[75,2118,2119],{"class":92},"([",[75,2121,2122],{"class":99},"'build'",[75,2124,192],{"class":92},[75,2126,2127],{"class":99},"'deploy'",[75,2129,192],{"class":92},[75,2131,2132],{"class":99},"'cache'",[75,2134,2135],{"class":92},"]);\n",[75,2137,2138,2141,2144,2147],{"class":77,"line":85},[75,2139,2140],{"class":170},"this",[75,2142,2143],{"class":92},".pipeline.",[75,2145,2146],{"class":134},"remove",[75,2148,2149],{"class":92},"(lunr.stopWordFilter);\n",[75,2151,2152,2154,2156,2159,2162,2165],{"class":77,"line":106},[75,2153,2140],{"class":170},[75,2155,2143],{"class":92},[75,2157,2158],{"class":134},"before",[75,2160,2161],{"class":92},"(lunr.stemmer, lunr.",[75,2163,2164],{"class":134},"generateStopWordFilter",[75,2166,2167],{"class":92},"(\n",[75,2169,2170,2173,2175,2178,2181,2183,2185,2188,2191,2194,2197,2199],{"class":77,"line":121},[75,2171,2172],{"class":92},"  lunr.stopWordFilter.words?.",[75,2174,339],{"class":134},[75,2176,2177],{"class":92},"?.((",[75,2179,2180],{"class":144},"w",[75,2182,148],{"class":92},[75,2184,151],{"class":88},[75,2186,2187],{"class":88}," !",[75,2189,2190],{"class":92},"keep.",[75,2192,2193],{"class":134},"has",[75,2195,2196],{"class":92},"(w)) ",[75,2198,455],{"class":88},[75,2200,2201],{"class":92}," []));\n",[14,2203,2204,2205,2208,2209,2212],{},"Test changes against a list of real queries and expected results, exactly as with any search tool. For tag or category filtering, add a ",[39,2206,2207],{},"tags"," field and query with ",[39,2210,2211],{},"+tags:hugo"," alongside the reader's terms.",[27,2214,2216],{"id":2215},"pitfalls-rollback","Pitfalls & Rollback",[32,2218,2219,2226,2232,2238,2244,2250],{},[35,2220,2221,2225],{},[2222,2223,2224],"strong",{},"Building the index in the browser."," Shipping raw text and indexing on load costs every visitor main-thread time. Prebuild and serialise.",[35,2227,2228,2231],{},[2222,2229,2230],{},"Storing bodies in the lookup."," The lookup only needs enough to render a result. A 140-character summary is plenty.",[35,2233,2234,2237],{},[2222,2235,2236],{},"Indexing code blocks."," Identifiers, flags and log output swell the vocabulary and pollute results for prose queries.",[35,2239,2240,2243],{},[2222,2241,2242],{},"Eager loading."," Fetch the index on focus, not in the page head.",[35,2245,2246,2249],{},[2222,2247,2248],{},"No budget."," Without a size check, the index degrades gradually and nobody notices until search feels broken.",[35,2251,2252,2255,2256,2258],{},[2222,2253,2254],{},"Rollback:"," the index is one ",[39,2257,967],{}," hook and one script block. Removing them restores the previous behaviour; the generated files disappear on the next clean build.",[27,2260,2262],{"id":2261},"conclusion","Conclusion",[14,2264,2265],{},"A prebuilt Lunr index remains a sound choice for Eleventy sites of a few hundred pages: it is transparent, dependency-light and fast when built lean and loaded lazily. Separate tokens from summaries, strip code, boost titles and headings, and fail the build when the gzipped payload passes 300 KB. That budget is your signal to move to a fragmented index like Pagefind — which on an Eleventy site is a one-line post-build step.",[27,2267,2269],{"id":2268},"faq","FAQ",[2271,2272,2274],"h3",{"id":2273},"why-prebuild-the-lunr-index-instead-of-building-it-in-the-browser","Why prebuild the Lunr index instead of building it in the browser?",[14,2276,2277],{},"Building an index in the browser means shipping all the raw text and spending CPU on every visit. A prebuilt index is serialised once at build time, so the browser only parses JSON. On a 400-page blog that cut time to first result from 1.9 seconds to 0.5 seconds on a mid-range phone.",[2271,2279,2281],{"id":2280},"when-should-i-stop-using-lunr","When should I stop using Lunr?",[14,2283,2284],{},"When the gzipped index passes roughly 300 KB, which for typical prose happens somewhere between 500 and 800 pages. Beyond that, a fragmented index such as Pagefind keeps the first-query download small.",[2271,2286,2288],{"id":2287},"should-i-index-the-full-body-text","Should I index the full body text?",[14,2290,2291],{},"Index the full text, but do not store it. Lunr's index only needs tokens; store just the title, URL and a short summary in a separate lookup so results can render without shipping the whole body.",[2271,2293,2295],{"id":2294},"does-lunr-support-languages-other-than-english","Does Lunr support languages other than English?",[14,2297,2298],{},"Yes, through the lunr-languages package, which adds stemmers and stop-word lists for around twenty languages. Each language adds a small plugin and should get its own index file.",[27,2300,2302],{"id":2301},"related","Related",[32,2304,2305,2314,2319,2326,2333],{},[35,2306,2307,2310,2311,2313],{},[2222,2308,2309],{},"Parent:"," ",[21,2312,24],{"href":23}," — the full comparison of static search tools.",[35,2315,2316,2318],{},[21,2317,1824],{"href":1823}," — where the 300 KB threshold comes from.",[35,2320,2321,2325],{},[21,2322,2324],{"href":2323},"\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"," — the fragmented alternative once you outgrow Lunr.",[35,2327,2328,2332],{},[21,2329,2331],{"href":2330},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fjavascript-hydration-partial-rendering\u002Fhow-to-reduce-bundle-size-in-eleventy-builds\u002F","How to Reduce Bundle Size in Eleventy Builds"," — keeping the rest of the page lean too.",[35,2334,2335,2339],{},[21,2336,2338],{"href":2337},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fincremental-builds-and-build-caching-for-ssgs\u002Fenabling-incremental-builds-in-eleventy\u002F","Enabling Incremental Builds in Eleventy"," — how the index hook behaves in incremental mode.",[2341,2342,2343],"style",{},"html pre.shiki code .sJ8bj, html code.shiki .sJ8bj{--shiki-default:#6A737D;--shiki-dark:#6A737D}html pre.shiki code .szBVR, html code.shiki .szBVR{--shiki-default:#D73A49;--shiki-dark:#F97583}html pre.shiki code .sVt8B, html code.shiki .sVt8B{--shiki-default:#24292E;--shiki-dark:#E1E4E8}html pre.shiki code .sZZnC, html code.shiki .sZZnC{--shiki-default:#032F62;--shiki-dark:#9ECBFF}html pre.shiki code .sScJk, html code.shiki .sScJk{--shiki-default:#6F42C1;--shiki-dark:#B392F0}html pre.shiki code .s4XuR, html code.shiki .s4XuR{--shiki-default:#E36209;--shiki-dark:#FFAB70}html pre.shiki code .sA_wV, html code.shiki .sA_wV{--shiki-default:#032F62;--shiki-dark:#DBEDFF}html pre.shiki code .sj4cs, html code.shiki .sj4cs{--shiki-default:#005CC5;--shiki-dark:#79B8FF}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 .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html pre.shiki code .s9eBZ, html code.shiki .s9eBZ{--shiki-default:#22863A;--shiki-dark:#85E89D}",{"title":71,"searchDepth":85,"depth":85,"links":2345},[2346,2347,2348,2349,2350,2351,2352,2353,2354,2360],{"id":29,"depth":85,"text":30},{"id":60,"depth":85,"text":61},{"id":1042,"depth":85,"text":1043},{"id":1663,"depth":85,"text":1664},{"id":1924,"depth":85,"text":1925},{"id":2093,"depth":85,"text":2094},{"id":2215,"depth":85,"text":2216},{"id":2261,"depth":85,"text":2262},{"id":2268,"depth":85,"text":2269,"children":2355},[2356,2357,2358,2359],{"id":2273,"depth":106,"text":2274},{"id":2280,"depth":106,"text":2281},{"id":2287,"depth":106,"text":2288},{"id":2294,"depth":106,"text":2295},{"id":2301,"depth":85,"text":2302},[2362,2364,2367,2368],{"name":2363,"item":163},"Home",{"name":2365,"item":2366},"Choosing the Right Static Site Generator for Production","\u002Fchoosing-the-right-static-site-generator-for-production\u002F",{"name":24,"item":23},{"name":5,"item":2369},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fsearch-for-static-sites\u002Fbuilding-a-lunr-index-at-build-time-in-eleventy\u002F","2026-09-18","Generate a prebuilt Lunr search index from Eleventy collections, keep it small with field boosts and stop words, and load it only when readers search.","md",[2374,2375,2376,2377],{"q":2274,"a":2277},{"q":2281,"a":2284},{"q":2288,"a":2291},{"q":2295,"a":2298},{},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fsearch-for-static-sites\u002Fbuilding-a-lunr-index-at-build-time-in-eleventy",{"title":5,"description":2371},"choosing-the-right-static-site-generator-for-production\u002Fsearch-for-static-sites\u002Fbuilding-a-lunr-index-at-build-time-in-eleventy\u002Findex","article","LdNtcBp8qrwzwVj3r4Ius5ZDajoZOI_Y7bXwwwZAp-4",[2385,2388,2391,2394,2397,2400,2403,2406,2409,2412,2415,2418,2421,2424,2427,2430,2433,2436,2439,2442,2444,2447,2450,2453,2456,2459,2462,2465,2468,2471,2474,2477,2480,2483,2486,2489,2492,2495,2498,2501,2504,2506,2507,2509,2512,2515,2518,2520,2523,2526,2529,2532,2535,2538,2541,2544,2547,2550,2553,2556,2559,2562,2565,2568,2571,2574,2577,2580,2583,2586,2589,2592,2595,2598,2601,2604,2607,2610,2613,2616,2619,2622,2625,2628,2630,2633,2636,2639,2642,2645,2648,2651,2654,2657,2660,2663,2666,2669,2672,2675,2678,2681,2684,2687,2690,2693,2696,2699,2702,2705,2708,2711,2714,2717,2720,2723,2726,2729,2732,2735,2738,2741,2744,2747,2750,2753,2756,2759,2762,2765,2768,2771,2774,2776,2779,2782,2785,2788,2791,2794,2797,2800,2803,2806,2809,2812,2815,2818,2821,2824,2827,2830,2833,2836,2839,2842,2845,2848,2851,2854,2857,2860,2863,2866,2869,2872,2875,2878,2881,2884,2887,2890,2893,2896,2899,2902,2905,2908,2911,2914,2917,2920,2923],{"path":2386,"title":2387},"\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":2389,"title":2390},"\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":2392,"title":2393},"\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":2395,"title":2396},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fastro-vs-eleventy-for-documentation-sites","Astro vs Eleventy for Documentation Sites",{"path":2398,"title":2399},"\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":2401,"title":2402},"\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":2404,"title":2405},"\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":2407,"title":2408},"\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":2410,"title":2411},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fdocs-frameworks-docusaurus-starlight-vitepress","Docs Frameworks: Docusaurus, Starlight and VitePress",{"path":2413,"title":2414},"\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":2416,"title":2417},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fdocs-frameworks-docusaurus-starlight-vitepress\u002Fmigrating-from-mkdocs-to-starlight","Migrating from MkDocs to Starlight",{"path":2419,"title":2420},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fdocs-frameworks-docusaurus-starlight-vitepress\u002Fversioned-documentation-with-docusaurus","Versioned Documentation with Docusaurus",{"path":2422,"title":2423},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fdocs-frameworks-docusaurus-starlight-vitepress\u002Fvitepress-for-library-documentation","VitePress for Library Documentation",{"path":2425,"title":2426},"\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":2428,"title":2429},"\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":2431,"title":2432},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fhugo-build-times-for-large-repositories","Hugo Build Times for Large Repositories",{"path":2434,"title":2435},"\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":2437,"title":2438},"\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":2440,"title":2441},"\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":2443,"title":2365},"\u002Fchoosing-the-right-static-site-generator-for-production",{"path":2445,"title":2446},"\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":2448,"title":2449},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fjekyll-plugin-ecosystem","Jekyll Plugin Ecosystem",{"path":2451,"title":2452},"\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":2454,"title":2455},"\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":2457,"title":2458},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fjekyll-plugin-ecosystem\u002Fspeeding-up-slow-jekyll-builds","Speeding Up Slow Jekyll Builds",{"path":2460,"title":2461},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fjekyll-plugin-ecosystem\u002Fupgrading-jekyll-and-ruby-versions-safely","Upgrading Jekyll and Ruby Versions Safely",{"path":2463,"title":2464},"\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":2466,"title":2467},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fmigrating-between-static-site-generators","Migrating Between Static Site Generators",{"path":2469,"title":2470},"\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":2472,"title":2473},"\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":2475,"title":2476},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fmigrating-between-static-site-generators\u002Fmigrating-from-gatsby-to-astro","Migrating from Gatsby to Astro",{"path":2478,"title":2479},"\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":2481,"title":2482},"\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":2484,"title":2485},"\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":2487,"title":2488},"\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":2490,"title":2491},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fnextjs-static-export-for-content-sites","Next.js Static Export for Content Sites",{"path":2493,"title":2494},"\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":2496,"title":2497},"\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":2499,"title":2500},"\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":2502,"title":2503},"\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":2505,"title":2324},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fsearch-for-static-sites\u002Fadding-pagefind-to-an-astro-site",{"path":2379,"title":5},{"path":2508,"title":24},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fsearch-for-static-sites",{"path":2510,"title":2511},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fsearch-for-static-sites\u002Findexing-hugo-sites-with-pagefind","Indexing Hugo Sites with Pagefind",{"path":2513,"title":2514},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fsearch-for-static-sites\u002Fmultilingual-search-on-static-sites","Multilingual Search on Static Sites",{"path":2516,"title":2517},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fsearch-for-static-sites\u002Fpagefind-vs-algolia-docsearch","Pagefind vs Algolia DocSearch",{"path":2519,"title":1824},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fsearch-for-static-sites\u002Fsearch-index-size-budgets-for-large-docs",{"path":2521,"title":2522},"\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":2524,"title":2525},"\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":2527,"title":2528},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fssg-framework-selection-matrix\u002Fevaluating-ssg-accessibility-defaults","Evaluating SSG Accessibility Defaults",{"path":2530,"title":2531},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fssg-framework-selection-matrix","SSG Framework Selection Matrix",{"path":2533,"title":2534},"\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":2536,"title":2537},"\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":2539,"title":2540},"\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":2542,"title":2543},"\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":2545,"title":2546},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fcdn-caching-rules-for-ssgs","CDN Caching Rules for SSGs",{"path":2548,"title":2549},"\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":2551,"title":2552},"\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":2554,"title":2555},"\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":2557,"title":2558},"\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":2560,"title":2561},"\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":2563,"title":2564},"\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":2566,"title":2567},"\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":2569,"title":2570},"\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":2572,"title":2573},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fcumulative-layout-shift-fixes-for-static-sites","Cumulative Layout Shift Fixes for Static Sites",{"path":2575,"title":2576},"\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":2578,"title":2579},"\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":2581,"title":2582},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Ffont-loading-strategies-for-static-sites\u002Ffont-display-optional-vs-swap","font-display: optional vs swap",{"path":2584,"title":2585},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Ffont-loading-strategies-for-static-sites","Font Loading Strategies for Static Sites",{"path":2587,"title":2588},"\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":2590,"title":2591},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Ffont-loading-strategies-for-static-sites\u002Fpreloading-fonts-without-double-downloads","Preloading Fonts Without Double Downloads",{"path":2593,"title":2594},"\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":2596,"title":2597},"\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":2599,"title":2600},"\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":2602,"title":2603},"\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":2605,"title":2606},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fimage-optimization-pipelines-in-astro","Image Optimization Pipelines in Astro",{"path":2608,"title":2609},"\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":2611,"title":2612},"\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":2614,"title":2615},"\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":2617,"title":2618},"\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":2620,"title":2621},"\u002Fperformance-optimization-core-web-vitals-for-ssgs","Core Web Vitals Optimization for SSGs",{"path":2623,"title":2624},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fjavascript-hydration-partial-rendering\u002Fastro-islands-vs-full-hydration-performance","Astro Islands vs Full Hydration Performance",{"path":2626,"title":2627},"\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":2629,"title":2331},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fjavascript-hydration-partial-rendering\u002Fhow-to-reduce-bundle-size-in-eleventy-builds",{"path":2631,"title":2632},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fjavascript-hydration-partial-rendering","JavaScript Hydration & Partial Rendering",{"path":2634,"title":2635},"\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":2637,"title":2638},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fjavascript-hydration-partial-rendering\u002Freplacing-react-islands-with-web-components","Replacing React Islands with Web Components",{"path":2640,"title":2641},"\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":2643,"title":2644},"\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":2646,"title":2647},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Flargest-contentful-paint-optimization-for-static-sites","Largest Contentful Paint Optimization for Static Sites",{"path":2649,"title":2650},"\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":2652,"title":2653},"\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":2655,"title":2656},"\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":2658,"title":2659},"\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":2661,"title":2662},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fperformance-budgets-and-lighthouse-ci","Performance Budgets and Lighthouse CI",{"path":2664,"title":2665},"\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":2667,"title":2668},"\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":2670,"title":2671},"\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":2673,"title":2674},"\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":2676,"title":2677},"\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":2679,"title":2680},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fresource-hints-and-navigation-speed\u002Fauditing-unused-preloads","Auditing Unused Preloads",{"path":2682,"title":2683},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fresource-hints-and-navigation-speed","Resource Hints and Navigation Speed",{"path":2685,"title":2686},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fresource-hints-and-navigation-speed\u002Finstant-navigation-with-speculation-rules","Instant Navigation with Speculation Rules",{"path":2688,"title":2689},"\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":2691,"title":2692},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fresource-hints-and-navigation-speed\u002Fprefetching-links-in-astro","Prefetching Links in Astro",{"path":2694,"title":2695},"\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":2697,"title":2698},"\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":2700,"title":2701},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fthird-party-script-performance-on-static-sites","Third-Party Script Performance on Static Sites",{"path":2703,"title":2704},"\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":2706,"title":2707},"\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":2709,"title":2710},"\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":2712,"title":2713},"\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":2715,"title":2716},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fcloudflare-pages-edge-caching-setup\u002Fautomating-eleventy-deployments-with-cloudflare-pages","Automating Eleventy Deployments on Cloudflare Pages",{"path":2718,"title":2719},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fcloudflare-pages-edge-caching-setup\u002Fconfiguring-redirects-on-cloudflare-pages","Configuring Redirects on Cloudflare Pages",{"path":2721,"title":2722},"\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":2724,"title":2725},"\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":2727,"title":2728},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fcloudflare-pages-edge-caching-setup","Cloudflare Pages Edge Caching Setup",{"path":2730,"title":2731},"\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":2733,"title":2734},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fcontent-workflows-for-documentation-teams\u002Fchecking-links-in-pull-requests","Checking Links in Pull Requests",{"path":2736,"title":2737},"\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":2739,"title":2740},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fcontent-workflows-for-documentation-teams\u002Feditorial-checks-with-vale-in-ci","Editorial Checks with Vale in CI",{"path":2742,"title":2743},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fcontent-workflows-for-documentation-teams","Content Workflows for Documentation Teams",{"path":2745,"title":2746},"\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":2748,"title":2749},"\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":2751,"title":2752},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fgithub-actions-for-automated-ssg-builds\u002Fbuilding-astro-sites-with-github-actions","Building Astro Sites with GitHub Actions",{"path":2754,"title":2755},"\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":2757,"title":2758},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fgithub-actions-for-automated-ssg-builds\u002Fdeploying-to-github-pages-with-actions","Deploying to GitHub Pages with Actions",{"path":2760,"title":2761},"\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":2763,"title":2764},"\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":2766,"title":2767},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fgithub-actions-for-automated-ssg-builds","GitHub Actions for Automated SSG Builds",{"path":2769,"title":2770},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fgithub-actions-for-automated-ssg-builds\u002Fmatrix-builds-for-multi-site-monorepos","Matrix Builds for Multi-Site Monorepos",{"path":2772,"title":2773},"\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":2775,"title":2338},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fincremental-builds-and-build-caching-for-ssgs\u002Fenabling-incremental-builds-in-eleventy",{"path":2777,"title":2778},"\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":2780,"title":2781},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fincremental-builds-and-build-caching-for-ssgs","Incremental Builds and Build Caching for SSGs",{"path":2783,"title":2784},"\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":2786,"title":2787},"\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":2789,"title":2790},"\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":2792,"title":2793},"\u002Fproduction-ready-deployment-cicd-workflows","Production-Ready Deployment & CI\u002FCD for SSGs",{"path":2795,"title":2796},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fmonitoring-static-sites-in-production\u002Falerting-on-cache-hit-ratio-drops","Alerting on Cache Hit Ratio Drops",{"path":2798,"title":2799},"\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":2801,"title":2802},"\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":2804,"title":2805},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fmonitoring-static-sites-in-production","Monitoring Static Sites in Production",{"path":2807,"title":2808},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fmonitoring-static-sites-in-production\u002Flogging-404s-at-the-edge","Logging 404s at the Edge",{"path":2810,"title":2811},"\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":2813,"title":2814},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fnetlify-vs-vercel-deployment-strategies\u002Fconfiguring-vercel-for-hugo-and-eleventy","Configuring Vercel for Hugo and Eleventy",{"path":2816,"title":2817},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fnetlify-vs-vercel-deployment-strategies","Netlify vs Vercel Deployment Strategies",{"path":2819,"title":2820},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fnetlify-vs-vercel-deployment-strategies\u002Fnetlify-build-hooks-for-content-updates","Netlify Build Hooks for Content Updates",{"path":2822,"title":2823},"\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":2825,"title":2826},"\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":2828,"title":2829},"\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":2831,"title":2832},"\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":2834,"title":2835},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fpreview-environments-for-pull-requests\u002Fcleaning-up-stale-preview-deployments","Cleaning Up Stale Preview Deployments",{"path":2837,"title":2838},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fpreview-environments-for-pull-requests","Preview Environments for Pull Requests",{"path":2840,"title":2841},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fpreview-environments-for-pull-requests\u002Fpassword-protecting-preview-deployments","Password-Protecting Preview Deployments",{"path":2843,"title":2844},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fpreview-environments-for-pull-requests\u002Fpreviewing-headless-cms-drafts","Previewing Headless CMS Drafts",{"path":2846,"title":2847},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fpreview-environments-for-pull-requests\u002Fvisual-regression-testing-on-preview-deploys","Visual Regression Testing on Preview Deploys",{"path":2849,"title":2850},"\u002Fproduction-ready-deployment-cicd-workflows\u002Frollbacks-and-deploy-safety-for-static-sites\u002Fatomic-deploys-vs-incremental-uploads","Atomic Deploys vs Incremental Uploads",{"path":2852,"title":2853},"\u002Fproduction-ready-deployment-cicd-workflows\u002Frollbacks-and-deploy-safety-for-static-sites\u002Fcanary-releases-for-static-sites","Canary Releases for Static Sites",{"path":2855,"title":2856},"\u002Fproduction-ready-deployment-cicd-workflows\u002Frollbacks-and-deploy-safety-for-static-sites\u002Ffeature-flags-on-static-sites","Feature Flags on Static Sites",{"path":2858,"title":2859},"\u002Fproduction-ready-deployment-cicd-workflows\u002Frollbacks-and-deploy-safety-for-static-sites","Rollbacks and Deploy Safety for Static Sites",{"path":2861,"title":2862},"\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":2864,"title":2865},"\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":2867,"title":2868},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fsecurity-headers-for-static-sites\u002Fauditing-npm-dependencies-in-ssg-pipelines","Auditing npm Dependencies in SSG Pipelines",{"path":2870,"title":2871},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fsecurity-headers-for-static-sites\u002Fenabling-hsts-and-preload-safely","Enabling HSTS and Preload Safely",{"path":2873,"title":2874},"\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":2876,"title":2877},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fsecurity-headers-for-static-sites","Security Headers and Hardening for Static Sites",{"path":2879,"title":2880},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fsecurity-headers-for-static-sites\u002Fsecuring-deploy-credentials-with-github-oidc","Securing Deploy Credentials with GitHub OIDC",{"path":2882,"title":2883},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fsecurity-headers-for-static-sites\u002Fsubresource-integrity-for-third-party-assets","Subresource Integrity for Third-Party Assets",{"path":2885,"title":2886},"\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":2888,"title":2889},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fself-hosting-static-sites\u002Fclean-urls-and-trailing-slashes-on-s3","Clean URLs and Trailing Slashes on S3",{"path":2891,"title":2892},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fself-hosting-static-sites\u002Fcloudfront-functions-for-redirects","CloudFront Functions for Redirects",{"path":2894,"title":2895},"\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":2897,"title":2898},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fself-hosting-static-sites","Self-Hosting Static Sites on S3, Nginx and Caddy",{"path":2900,"title":2901},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fself-hosting-static-sites\u002Fserving-a-static-site-with-caddy","Serving a Static Site with Caddy",{"path":2903,"title":2904},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fself-hosting-static-sites\u002Fserving-a-static-site-with-nginx","Serving a Static Site with Nginx",{"path":2906,"title":2907},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fself-hosting-static-sites\u002Fzero-downtime-deploys-with-symlink-swaps","Zero-Downtime Deploys with Symlink Swaps",{"path":2909,"title":2910},"\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":2912,"title":2913},"\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":2915,"title":2916},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fserverless-functions-for-static-sites","Serverless Functions for Static Sites",{"path":2918,"title":2919},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fserverless-functions-for-static-sites\u002Fnetlify-functions-vs-cloudflare-workers","Netlify Functions vs Cloudflare Workers",{"path":2921,"title":2922},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fserverless-functions-for-static-sites\u002Fprotecting-a-static-site-behind-authentication","Protecting a Static Site Behind Authentication",{"path":2924,"title":2925},"\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",1789722847326]