[{"data":1,"prerenderedAt":1783},["ShallowReactive",2],{"page:\u002Fproduction-ready-deployment-cicd-workflows\u002Fself-hosting-static-sites\u002Fdeploying-a-static-site-to-s3-and-cloudfront":3,"all-docs-nav":1242},{"id":4,"title":5,"body":6,"breadcrumb":1218,"dateModified":1227,"datePublished":1227,"description":1228,"extension":1229,"faq":1230,"meta":1235,"navigation":1236,"path":1237,"seo":1238,"slug":12,"stem":1239,"type":1240,"__hash__":1241},"content\u002Fproduction-ready-deployment-cicd-workflows\u002Fself-hosting-static-sites\u002Fdeploying-a-static-site-to-s3-and-cloudfront\u002Findex.md","Deploying a Static Site to S3 and CloudFront",{"type":7,"value":8,"toc":1198},"minimark",[9,13,17,26,31,56,60,63,228,243,402,406,413,468,472,479,650,657,758,762,765,853,856,860,932,936,953,957,968,1043,1047,1071,1075,1116,1120,1123,1127,1132,1135,1139,1142,1146,1149,1153,1156,1160,1194],[10,11,5],"h1",{"id":12},"deploying-a-static-site-to-s3-and-cloudfront",[14,15,16],"p",{},"S3 and CloudFront are the default way to host a static site inside AWS: storage with eleven nines of durability, a CDN with hundreds of edge locations, free TLS certificates from ACM, and every access controlled by IAM and logged in CloudTrail. The setup has a handful of decisions that are easy to get wrong — public buckets, the website endpoint, one cache header for everything, uploads in the wrong order — and each produces a site that works in a demo and misbehaves in production.",[14,18,19,20,25],{},"This guide deploys a 2,000-page Astro documentation site to a private bucket behind CloudFront, from GitHub Actions, with split cache headers, ordered uploads and a targeted invalidation. It is part of ",[21,22,24],"a",{"href":23},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fself-hosting-static-sites\u002F","Self-Hosting Static Sites on S3, Nginx and Caddy",".",[27,28,30],"h2",{"id":29},"prerequisites","Prerequisites",[32,33,34,38,46,49],"ul",{},[35,36,37],"li",{},"An AWS account and a domain whose DNS you control (Route 53 or elsewhere).",[35,39,40,41,45],{},"An ACM certificate for the domain in ",[42,43,44],"code",{},"us-east-1",", which is where CloudFront reads certificates from.",[35,47,48],{},"A static build that fingerprints assets (Astro, Vite, Hugo Pipes and most generators do).",[35,50,51,52,25],{},"A GitHub Actions deploy role, ideally via OIDC as described in ",[21,53,55],{"href":54},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fsecurity-headers-for-static-sites\u002Fsecuring-deploy-credentials-with-github-oidc\u002F","Securing Deploy Credentials with GitHub OIDC",[27,57,59],{"id":58},"step-1-private-bucket-origin-access-control","Step 1: Private Bucket, Origin Access Control",[14,61,62],{},"Create the bucket with Block Public Access fully enabled and no website hosting. CloudFront reads it through Origin Access Control (OAC), which signs requests; the bucket policy allows only that distribution.",[64,65,70],"pre",{"className":66,"code":67,"language":68,"meta":69,"style":69},"language-hcl shiki shiki-themes github-light github-dark","resource \"aws_s3_bucket\" \"site\" { bucket = \"docs-example-com\" }\nresource \"aws_s3_bucket_public_access_block\" \"site\" {\n  bucket = aws_s3_bucket.site.id\n  block_public_acls = true\n  block_public_policy = true\n  ignore_public_acls = true\n  restrict_public_buckets = true\n}\nresource \"aws_cloudfront_origin_access_control\" \"site\" {\n  name = \"docs-oac\"\n  origin_access_control_origin_type = \"s3\"\n  signing_behavior = \"always\"\n  signing_protocol = \"sigv4\"\n}\ndata \"aws_iam_policy_document\" \"site\" {\n  statement {\n    actions   = [\"s3:GetObject\"]\n    resources = [\"${aws_s3_bucket.site.arn}\u002F*\"]\n    principals { type = \"Service\", identifiers = [\"cloudfront.amazonaws.com\"] }\n    condition {\n      test = \"StringEquals\"\n      variable = \"AWS:SourceArn\"\n      values = [aws_cloudfront_distribution.site.arn]\n    }\n  }\n}\n","hcl","",[42,71,72,80,86,92,98,104,110,116,122,128,134,140,146,152,157,163,169,175,181,187,193,199,205,211,217,223],{"__ignoreMap":69},[73,74,77],"span",{"class":75,"line":76},"line",1,[73,78,79],{},"resource \"aws_s3_bucket\" \"site\" { bucket = \"docs-example-com\" }\n",[73,81,83],{"class":75,"line":82},2,[73,84,85],{},"resource \"aws_s3_bucket_public_access_block\" \"site\" {\n",[73,87,89],{"class":75,"line":88},3,[73,90,91],{},"  bucket = aws_s3_bucket.site.id\n",[73,93,95],{"class":75,"line":94},4,[73,96,97],{},"  block_public_acls = true\n",[73,99,101],{"class":75,"line":100},5,[73,102,103],{},"  block_public_policy = true\n",[73,105,107],{"class":75,"line":106},6,[73,108,109],{},"  ignore_public_acls = true\n",[73,111,113],{"class":75,"line":112},7,[73,114,115],{},"  restrict_public_buckets = true\n",[73,117,119],{"class":75,"line":118},8,[73,120,121],{},"}\n",[73,123,125],{"class":75,"line":124},9,[73,126,127],{},"resource \"aws_cloudfront_origin_access_control\" \"site\" {\n",[73,129,131],{"class":75,"line":130},10,[73,132,133],{},"  name = \"docs-oac\"\n",[73,135,137],{"class":75,"line":136},11,[73,138,139],{},"  origin_access_control_origin_type = \"s3\"\n",[73,141,143],{"class":75,"line":142},12,[73,144,145],{},"  signing_behavior = \"always\"\n",[73,147,149],{"class":75,"line":148},13,[73,150,151],{},"  signing_protocol = \"sigv4\"\n",[73,153,155],{"class":75,"line":154},14,[73,156,121],{},[73,158,160],{"class":75,"line":159},15,[73,161,162],{},"data \"aws_iam_policy_document\" \"site\" {\n",[73,164,166],{"class":75,"line":165},16,[73,167,168],{},"  statement {\n",[73,170,172],{"class":75,"line":171},17,[73,173,174],{},"    actions   = [\"s3:GetObject\"]\n",[73,176,178],{"class":75,"line":177},18,[73,179,180],{},"    resources = [\"${aws_s3_bucket.site.arn}\u002F*\"]\n",[73,182,184],{"class":75,"line":183},19,[73,185,186],{},"    principals { type = \"Service\", identifiers = [\"cloudfront.amazonaws.com\"] }\n",[73,188,190],{"class":75,"line":189},20,[73,191,192],{},"    condition {\n",[73,194,196],{"class":75,"line":195},21,[73,197,198],{},"      test = \"StringEquals\"\n",[73,200,202],{"class":75,"line":201},22,[73,203,204],{},"      variable = \"AWS:SourceArn\"\n",[73,206,208],{"class":75,"line":207},23,[73,209,210],{},"      values = [aws_cloudfront_distribution.site.arn]\n",[73,212,214],{"class":75,"line":213},24,[73,215,216],{},"    }\n",[73,218,220],{"class":75,"line":219},25,[73,221,222],{},"  }\n",[73,224,226],{"class":75,"line":225},26,[73,227,121],{},[14,229,230,231,234,235,238,239,25],{},"Using the REST endpoint means S3 will not resolve ",[42,232,233],{},"\u002Fguides\u002F"," to ",[42,236,237],{},"\u002Fguides\u002Findex.html"," on its own. A CloudFront Function on viewer requests handles that rewrite; it is covered in ",[21,240,242],{"href":241},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fself-hosting-static-sites\u002Fclean-urls-and-trailing-slashes-on-s3\u002F","Clean URLs and Trailing Slashes on S3",[244,245,246,398],"figure",{},[247,248,255,256,255,260,255,264,255,271,255,384],"svg",{"viewBox":249,"role":250,"ariaLabelledBy":251,"xmlns":254},"0 0 760 280","img",[252,253],"s3cf-arch-title","s3cf-arch-desc","http:\u002F\u002Fwww.w3.org\u002F2000\u002Fsvg","\n  ",[257,258,259],"title",{"id":252},"Request path through CloudFront to a private bucket",[261,262,263],"desc",{"id":253},"A reader requests \u002Fguides\u002F over HTTPS. CloudFront's viewer-request function rewrites it to \u002Fguides\u002Findex.html and applies redirects. On a cache miss, CloudFront signs a request with Origin Access Control to the private S3 bucket, which only accepts that distribution. The response is cached at the edge with the object's Cache-Control header and returned with a security headers policy attached.",[265,266],"rect",{"x":267,"y":267,"width":268,"height":269,"fill":270},"0","760","280","#ffffff",[272,273,275,276,275,284,275,294,275,300,275,306,275,312,275,317,275,320,275,325,275,329,275,332,275,338,275,342,275,345,275,361,275,365,275,374,275,380,255],"g",{"style":274},"font-family:system-ui, sans-serif;font-size:12px","\n    ",[277,278,283],"text",{"x":279,"y":280,"fill":281,"style":282},"380","28","#1f2937","font-size:16px;font-weight:700;text-anchor:middle","Readers reach CloudFront; only CloudFront reaches the bucket",[265,285],{"x":286,"y":287,"width":288,"height":289,"rx":290,"fill":291,"stroke":292,"style":293},"20","100","120","60","10","#f8fafc","#d9e2ef","stroke-width:1.5px",[277,295,299],{"x":296,"y":297,"fill":281,"style":298},"80","126","font-weight:700;text-anchor:middle","reader",[277,301,305],{"x":296,"y":302,"fill":303,"style":304},"144","#556071","font-size:11px;text-anchor:middle","GET \u002Fguides\u002F",[265,307],{"x":308,"y":287,"width":309,"height":289,"rx":290,"fill":310,"opacity":311,"stroke":310,"style":293},"180","170","#6a4c93","0.14",[277,313,316],{"x":314,"y":315,"fill":281,"style":298},"265","124","viewer function",[277,318,319],{"x":314,"y":302,"fill":303,"style":304},"→ \u002Fguides\u002Findex.html",[265,321],{"x":322,"y":287,"width":323,"height":289,"rx":290,"fill":324,"opacity":311,"stroke":324,"style":293},"390","150","#1982c4",[277,326,328],{"x":327,"y":315,"fill":281,"style":298},"465","edge cache",[277,330,331],{"x":327,"y":302,"fill":303,"style":304},"hit ~96%",[265,333],{"x":334,"y":287,"width":323,"height":289,"rx":290,"fill":335,"opacity":336,"stroke":337,"style":293},"590","#ffca3a","0.24","#a97b00",[277,339,341],{"x":340,"y":315,"fill":281,"style":298},"665","private S3",[277,343,344],{"x":340,"y":302,"fill":303,"style":304},"OAC-signed only",[272,346,349,350,349,355,349,358,275],{"stroke":303,"fill":347,"style":348},"none","stroke-width:2px","\n      ",[351,352],"path",{"d":353,"style":354},"M142 130 L176 130","marker-end:url(#s3cf-arrow)",[351,356],{"d":357,"style":354},"M352 130 L386 130",[351,359],{"d":360,"style":354},"M542 130 L586 130",[277,362,364],{"x":363,"y":288,"fill":303,"style":304},"564","miss",[265,366],{"x":322,"y":367,"width":368,"height":369,"rx":370,"fill":371,"opacity":311,"stroke":372,"style":373},"190","350","36","8","#8ac926","#5a8a16","stroke-width:1px",[277,375,379],{"x":376,"y":377,"fill":281,"style":378},"565","213","text-anchor:middle","response headers policy adds HSTS, CSP, nosniff",[277,381,383],{"x":279,"y":382,"fill":303,"style":304},"258","Direct requests to the bucket return 403; there is no public path around the CDN",[385,386,275,387,255],"defs",{},[388,389,349,395,275],"marker",{"id":390,"viewBox":391,"refX":370,"refY":392,"markerWidth":393,"markerHeight":393,"orient":394},"s3cf-arrow","0 0 10 10","5","7","auto-start-reverse",[351,396],{"d":397,"fill":303},"M0 0 L10 5 L0 10 z",[399,400,401],"figcaption",{},"Private bucket plus OAC means headers, redirects and logging all happen in one place: CloudFront.",[27,403,405],{"id":404},"step-2-configure-the-distribution","Step 2: Configure the Distribution",[14,407,408,409,412],{},"The distribution needs the ACM certificate, the viewer-request function, a response headers policy and a cache policy that respects origin ",[42,410,411],{},"Cache-Control",":",[32,414,415,422,435,445,458],{},[35,416,417,421],{},[418,419,420],"strong",{},"Viewer protocol policy:"," redirect HTTP to HTTPS.",[35,423,424,427,428,431,432,434],{},[418,425,426],{},"Cache policy:"," ",[42,429,430],{},"CachingOptimized"," honours ",[42,433,411],{}," from S3 objects, with compression (gzip and brotli) enabled.",[35,436,437,440,441,444],{},[418,438,439],{},"Response headers policy:"," start from the managed ",[42,442,443],{},"SecurityHeadersPolicy"," and add your CSP.",[35,446,447,427,450,453,454,457],{},[418,448,449],{},"Default root object:",[42,451,452],{},"index.html"," (only applies to ",[42,455,456],{},"\u002F","; subdirectories need the function).",[35,459,460,463,464,467],{},[418,461,462],{},"Custom error response:"," 404 → ",[42,465,466],{},"\u002F404.html"," with status 404, and S3's 403 for missing keys mapped to 404 as well — a private bucket returns 403 rather than 404 for objects that do not exist.",[27,469,471],{"id":470},"step-3-upload-in-the-right-order-with-the-right-headers","Step 3: Upload in the Right Order With the Right Headers",[14,473,474,475,478],{},"Two cache lifetimes, two uploads. Hashed assets get a year and ",[42,476,477],{},"immutable","; HTML, the sitemap and other stable-name files get zero with revalidation:",[64,480,484],{"className":481,"code":482,"language":483,"meta":69,"style":69},"language-yaml shiki shiki-themes github-light github-dark","# .github\u002Fworkflows\u002Fdeploy.yml (deploy job)\n- uses: aws-actions\u002Fconfigure-aws-credentials@v4\n  with: { role-to-assume: arn:aws:iam::123456789012:role\u002Fdocs-deploy, aws-region: eu-west-1 }\n- name: Upload hashed assets (no delete yet)\n  run: |\n    aws s3 sync dist\u002F s3:\u002F\u002Fdocs-example-com\u002F \\\n      --exclude '*' --include '_astro\u002F*' --include 'pagefind\u002F*' \\\n      --cache-control 'public, max-age=31536000, immutable'\n- name: Upload HTML and other files\n  run: |\n    aws s3 sync dist\u002F s3:\u002F\u002Fdocs-example-com\u002F \\\n      --exclude '_astro\u002F*' --exclude 'pagefind\u002F*' \\\n      --cache-control 'public, max-age=0, must-revalidate'\n- name: Remove files no longer in the build\n  run: aws s3 sync dist\u002F s3:\u002F\u002Fdocs-example-com\u002F --delete --size-only\n- name: Invalidate HTML\n  run: aws cloudfront create-invalidation --distribution-id E2ABC123 --paths '\u002F*'\n","yaml",[42,485,486,492,509,539,551,562,567,572,577,588,596,600,605,610,621,630,641],{"__ignoreMap":69},[73,487,488],{"class":75,"line":76},[73,489,491],{"class":490},"sJ8bj","# .github\u002Fworkflows\u002Fdeploy.yml (deploy job)\n",[73,493,494,498,502,505],{"class":75,"line":82},[73,495,497],{"class":496},"sVt8B","- ",[73,499,501],{"class":500},"s9eBZ","uses",[73,503,504],{"class":496},": ",[73,506,508],{"class":507},"sZZnC","aws-actions\u002Fconfigure-aws-credentials@v4\n",[73,510,511,514,517,520,522,525,528,531,533,536],{"class":75,"line":88},[73,512,513],{"class":500},"  with",[73,515,516],{"class":496},": { ",[73,518,519],{"class":500},"role-to-assume",[73,521,504],{"class":496},[73,523,524],{"class":507},"arn:aws:iam::123456789012:role\u002Fdocs-deploy",[73,526,527],{"class":496},", ",[73,529,530],{"class":500},"aws-region",[73,532,504],{"class":496},[73,534,535],{"class":507},"eu-west-1",[73,537,538],{"class":496}," }\n",[73,540,541,543,546,548],{"class":75,"line":94},[73,542,497],{"class":496},[73,544,545],{"class":500},"name",[73,547,504],{"class":496},[73,549,550],{"class":507},"Upload hashed assets (no delete yet)\n",[73,552,553,556,558],{"class":75,"line":100},[73,554,555],{"class":500},"  run",[73,557,504],{"class":496},[73,559,561],{"class":560},"szBVR","|\n",[73,563,564],{"class":75,"line":106},[73,565,566],{"class":507},"    aws s3 sync dist\u002F s3:\u002F\u002Fdocs-example-com\u002F \\\n",[73,568,569],{"class":75,"line":112},[73,570,571],{"class":507},"      --exclude '*' --include '_astro\u002F*' --include 'pagefind\u002F*' \\\n",[73,573,574],{"class":75,"line":118},[73,575,576],{"class":507},"      --cache-control 'public, max-age=31536000, immutable'\n",[73,578,579,581,583,585],{"class":75,"line":124},[73,580,497],{"class":496},[73,582,545],{"class":500},[73,584,504],{"class":496},[73,586,587],{"class":507},"Upload HTML and other files\n",[73,589,590,592,594],{"class":75,"line":130},[73,591,555],{"class":500},[73,593,504],{"class":496},[73,595,561],{"class":560},[73,597,598],{"class":75,"line":136},[73,599,566],{"class":507},[73,601,602],{"class":75,"line":142},[73,603,604],{"class":507},"      --exclude '_astro\u002F*' --exclude 'pagefind\u002F*' \\\n",[73,606,607],{"class":75,"line":148},[73,608,609],{"class":507},"      --cache-control 'public, max-age=0, must-revalidate'\n",[73,611,612,614,616,618],{"class":75,"line":154},[73,613,497],{"class":496},[73,615,545],{"class":500},[73,617,504],{"class":496},[73,619,620],{"class":507},"Remove files no longer in the build\n",[73,622,623,625,627],{"class":75,"line":159},[73,624,555],{"class":500},[73,626,504],{"class":496},[73,628,629],{"class":507},"aws s3 sync dist\u002F s3:\u002F\u002Fdocs-example-com\u002F --delete --size-only\n",[73,631,632,634,636,638],{"class":75,"line":165},[73,633,497],{"class":496},[73,635,545],{"class":500},[73,637,504],{"class":496},[73,639,640],{"class":507},"Invalidate HTML\n",[73,642,643,645,647],{"class":75,"line":171},[73,644,555],{"class":500},[73,646,504],{"class":496},[73,648,649],{"class":507},"aws cloudfront create-invalidation --distribution-id E2ABC123 --paths '\u002F*'\n",[14,651,652,653,25],{},"The order matters. Assets first means new HTML never references an asset that has not arrived. Deletion last means pages still cached at the edge with old asset references keep working until they expire. The reasoning is the same as for managed hosts, covered in ",[21,654,656],{"href":655},"\u002Fproduction-ready-deployment-cicd-workflows\u002Frollbacks-and-deploy-safety-for-static-sites\u002Fatomic-deploys-vs-incremental-uploads\u002F","Atomic Deploys vs Incremental Uploads",[244,658,659,755],{},[247,660,255,665,255,668,255,671,255,674,255,748],{"viewBox":661,"role":250,"ariaLabelledBy":662,"xmlns":254},"0 0 760 260",[663,664],"s3cf-order-title","s3cf-order-desc",[257,666,667],{"id":663},"Deploy order and what readers see",[261,669,670],{"id":664},"Four deploy steps on a timeline. First, new hashed assets upload alongside old ones, so all pages still work. Second, new HTML uploads, and new pages reference assets that already exist. Third, stale files are deleted. Fourth, the HTML invalidation clears edge copies. At no point does a reader get HTML that references a missing asset.",[265,672],{"x":267,"y":267,"width":268,"height":673,"fill":270},"260",[272,675,275,676,275,679,275,684,275,689,275,693,275,696,275,700,275,703,275,705,275,709,275,712,275,716,275,720,275,723,275,735,275,740,275,744,255],{"style":274},[277,677,678],{"x":279,"y":280,"fill":281,"style":282},"Add before you reference; delete after nothing references",[265,680],{"x":681,"y":682,"width":683,"height":289,"rx":290,"fill":324,"opacity":311,"stroke":324,"style":293},"30","70","160",[277,685,688],{"x":686,"y":687,"fill":281,"style":298},"110","96","1 · assets",[277,690,692],{"x":686,"y":691,"fill":303,"style":304},"114","old + new coexist",[265,694],{"x":695,"y":682,"width":683,"height":289,"rx":290,"fill":310,"opacity":311,"stroke":310,"style":293},"210",[277,697,699],{"x":698,"y":687,"fill":281,"style":298},"290","2 · HTML",[277,701,702],{"x":698,"y":691,"fill":303,"style":304},"refs already exist",[265,704],{"x":322,"y":682,"width":683,"height":289,"rx":290,"fill":335,"opacity":336,"stroke":337,"style":293},[277,706,708],{"x":707,"y":687,"fill":281,"style":298},"470","3 · delete stale",[277,710,711],{"x":707,"y":691,"fill":303,"style":304},"old assets removed",[265,713],{"x":714,"y":682,"width":683,"height":289,"rx":290,"fill":371,"opacity":715,"stroke":372,"style":293},"570","0.18",[277,717,719],{"x":718,"y":687,"fill":281,"style":298},"650","4 · invalidate",[277,721,722],{"x":718,"y":691,"fill":303,"style":304},"edges fetch new HTML",[272,724,349,725,349,729,349,732,275],{"stroke":303,"fill":347,"style":348},[351,726],{"d":727,"style":728},"M192 100 L206 100","marker-end:url(#s3cf-o-arrow)",[351,730],{"d":731,"style":728},"M372 100 L386 100",[351,733],{"d":734,"style":728},"M552 100 L566 100",[265,736],{"x":681,"y":683,"width":737,"height":738,"rx":370,"fill":371,"opacity":739,"stroke":372,"style":373},"700","34","0.12",[277,741,743],{"x":279,"y":742,"fill":281,"style":378},"182","every moment: every served page's assets exist",[277,745,747],{"x":279,"y":746,"fill":303,"style":304},"234","Reversing steps 1 and 2 produced 1,140 asset 404s in the 40 seconds of a test deploy",[385,749,275,750,255],{},[388,751,349,753,275],{"id":752,"viewBox":391,"refX":370,"refY":392,"markerWidth":393,"markerHeight":393,"orient":394},"s3cf-o-arrow",[351,754],{"d":397,"fill":303},[399,756,757],{},"S3 has no atomic multi-object write; ordering the uploads is how you get the same guarantee.",[27,759,761],{"id":760},"step-4-point-dns-and-verify","Step 4: Point DNS and Verify",[14,763,764],{},"Create an alias record (Route 53) or CNAME (other DNS providers) from the domain to the distribution's hostname. Then verify each behaviour from outside:",[64,766,770],{"className":767,"code":768,"language":769,"meta":69,"style":69},"language-bash shiki shiki-themes github-light github-dark","curl -sI https:\u002F\u002Fdocs.example.com\u002Fguides\u002F | grep -Ei '^(HTTP|cache-control|x-cache|strict-transport)'\ncurl -sI https:\u002F\u002Fdocs.example.com\u002F_astro\u002Fapp.4f2a9c.js | grep -Ei '^(cache-control|x-cache)'\ncurl -sI https:\u002F\u002Fdocs.example.com\u002Fnope\u002F | head -1                      # expect 404, not 403\ncurl -sI https:\u002F\u002Fdocs-example-com.s3.eu-west-1.amazonaws.com\u002Findex.html | head -1   # expect 403\n","bash",[42,771,772,797,815,835],{"__ignoreMap":69},[73,773,774,778,782,785,788,791,794],{"class":75,"line":76},[73,775,777],{"class":776},"sScJk","curl",[73,779,781],{"class":780},"sj4cs"," -sI",[73,783,784],{"class":507}," https:\u002F\u002Fdocs.example.com\u002Fguides\u002F",[73,786,787],{"class":560}," |",[73,789,790],{"class":776}," grep",[73,792,793],{"class":780}," -Ei",[73,795,796],{"class":507}," '^(HTTP|cache-control|x-cache|strict-transport)'\n",[73,798,799,801,803,806,808,810,812],{"class":75,"line":82},[73,800,777],{"class":776},[73,802,781],{"class":780},[73,804,805],{"class":507}," https:\u002F\u002Fdocs.example.com\u002F_astro\u002Fapp.4f2a9c.js",[73,807,787],{"class":560},[73,809,790],{"class":776},[73,811,793],{"class":780},[73,813,814],{"class":507}," '^(cache-control|x-cache)'\n",[73,816,817,819,821,824,826,829,832],{"class":75,"line":88},[73,818,777],{"class":776},[73,820,781],{"class":780},[73,822,823],{"class":507}," https:\u002F\u002Fdocs.example.com\u002Fnope\u002F",[73,825,787],{"class":560},[73,827,828],{"class":776}," head",[73,830,831],{"class":780}," -1",[73,833,834],{"class":490},"                      # expect 404, not 403\n",[73,836,837,839,841,844,846,848,850],{"class":75,"line":94},[73,838,777],{"class":776},[73,840,781],{"class":780},[73,842,843],{"class":507}," https:\u002F\u002Fdocs-example-com.s3.eu-west-1.amazonaws.com\u002Findex.html",[73,845,787],{"class":560},[73,847,828],{"class":776},[73,849,831],{"class":780},[73,851,852],{"class":490},"   # expect 403\n",[14,854,855],{},"The last check confirms the bucket is not publicly reachable; the third confirms the 403-to-404 mapping works.",[27,857,859],{"id":858},"measured-impact","Measured Impact",[861,862,863,876],"table",{},[864,865,866],"thead",{},[867,868,869,873],"tr",{},[870,871,872],"th",{},"Measure",[870,874,875],{},"Value",[877,878,879,888,900,908,916,924],"tbody",{},[867,880,881,885],{},[882,883,884],"td",{},"Upload time, 2,000 pages (changed files only)",[882,886,887],{},"22–38 s",[867,889,890,897],{},[882,891,892,893,896],{},"Invalidation completion (",[42,894,895],{},"\u002F*",")",[882,898,899],{},"18–45 s",[867,901,902,905],{},[882,903,904],{},"Total deploy after build",[882,906,907],{},"71 s median",[867,909,910,913],{},[882,911,912],{},"Edge cache hit ratio (bytes), steady state",[882,914,915],{},"96.4%",[867,917,918,921],{},[882,919,920],{},"TTFB p75 (RUM, global)",[882,922,923],{},"88 ms",[867,925,926,929],{},[882,927,928],{},"Monthly cost at ~1.2 M page views",[882,930,931],{},"~42 USD (data transfer 31, requests 9, other 2)",[27,933,935],{"id":934},"keeping-costs-predictable","Keeping Costs Predictable",[14,937,938,939,941,942,945,946,949,950,952],{},"CloudFront bills for data transfer out and for requests; S3 bills for storage and for requests from CloudFront on cache misses. For a static site the levers are almost entirely about cache efficiency. Serve hashed assets with ",[42,940,477],{}," so browsers never revalidate them. Enable compression so text transfers at a third of its raw size. Use the ",[42,943,944],{},"PriceClass_100"," or ",[42,947,948],{},"PriceClass_200"," distribution setting if your readers are concentrated in North America and Europe, which excludes the most expensive edge regions at the cost of slightly higher latency elsewhere. And set a budget alert in AWS Budgets at twice the expected monthly cost, so a hotlinked video or a crawler loop becomes an email rather than a surprise invoice. On the site measured here, enabling brotli and fixing a missing ",[42,951,477],{}," header on the search index cut the monthly bill from 58 to 42 USD.",[27,954,956],{"id":955},"rollback","Rollback",[14,958,959,960,963,964,967],{},"S3 has no deploy history of its own, so build one. The simplest approach: enable bucket versioning and record the deploy's start time; rollback restores every object to its version at the previous deploy's time using a short script over ",[42,961,962],{},"list-object-versions",". A faster alternative is to deploy each release under a prefix (",[42,965,966],{},"\u002Freleases\u002F\u003Csha>\u002F",") and switch the distribution's origin path, which turns rollback into a single configuration change taking about 30–40 seconds to propagate. The prefix approach costs storage for old releases; lifecycle rules can expire prefixes older than thirty days.",[244,969,970,1040],{},[247,971,255,976,255,979,255,982,255,985],{"viewBox":972,"role":250,"ariaLabelledBy":973,"xmlns":254},"0 0 760 250",[974,975],"s3cf-rb-title","s3cf-rb-desc",[257,977,978],{"id":974},"Two rollback strategies on S3",[261,980,981],{"id":975},"Left, versioned bucket: rollback restores each changed object to its prior version with a script, taking about 3 minutes for 2,000 pages plus an invalidation. Right, release prefixes: each deploy writes to its own prefix and CloudFront's origin path points at one; rollback changes the origin path back, taking about 40 seconds.",[265,983],{"x":267,"y":267,"width":268,"height":984,"fill":270},"250",[272,986,275,987,275,990,275,996,275,1001,275,1005,275,1009,275,1013,275,1019,275,1022,275,1026,275,1030,275,1033,275,1036,255],{"style":274},[277,988,989],{"x":279,"y":280,"fill":281,"style":282},"Restore objects, or re-point the origin",[265,991],{"x":992,"y":993,"width":994,"height":309,"rx":995,"fill":335,"opacity":739,"stroke":337,"style":293},"40","50","320","12",[277,997,1000],{"x":998,"y":999,"fill":281,"style":298},"200","76","versioned bucket",[277,1002,1004],{"x":289,"y":1003,"fill":281},"108","one prefix, object versions kept",[277,1006,1008],{"x":289,"y":1007,"fill":281},"132","rollback: restore prior versions",[277,1010,1012],{"x":289,"y":1011,"fill":281},"156","+ invalidation",[277,1014,1018],{"x":289,"y":1015,"fill":1016,"style":1017},"196","#8a6d0f","font-weight:700","~3 min for 2,000 pages",[265,1020],{"x":1021,"y":993,"width":994,"height":309,"rx":995,"fill":371,"opacity":739,"stroke":372,"style":293},"400",[277,1023,1025],{"x":1024,"y":999,"fill":281,"style":298},"560","release prefixes",[277,1027,1029],{"x":1028,"y":1003,"fill":281},"420","\u002Freleases\u002F\u003Csha>\u002F per deploy",[277,1031,1032],{"x":1028,"y":1007,"fill":281},"rollback: change origin path",[277,1034,1035],{"x":1028,"y":1011,"fill":281},"lifecycle rule expires old prefixes",[277,1037,1039],{"x":1028,"y":1015,"fill":1038,"style":1017},"#3f6410","~40 s, one config change",[399,1041,1042],{},"Release prefixes trade a little storage for a rollback that is fast, whole-site and impossible to half-apply.",[27,1044,1046],{"id":1045},"previews-on-the-same-infrastructure","Previews on the Same Infrastructure",[14,1048,1049,1050,1053,1054,1057,1058,1061,1062,1065,1066,1070],{},"Preview deploys work the same way with a second, cheaper distribution. Each pull request syncs to ",[42,1051,1052],{},"s3:\u002F\u002Fdocs-example-com-previews\u002Fpr-482\u002F",", and a preview distribution's viewer function maps ",[42,1055,1056],{},"pr-482.preview.example.com"," to that prefix by reading the ",[42,1059,1060],{},"Host"," header. A wildcard ACM certificate and a wildcard DNS record cover every pull request without per-preview infrastructure. Give the preview distribution a response header ",[42,1063,1064],{},"X-Robots-Tag: noindex"," so previews never appear in search, and a bucket lifecycle rule that deletes preview prefixes after fourteen days as a safety net behind the cleanup job from ",[21,1067,1069],{"href":1068},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fpreview-environments-for-pull-requests\u002Fcleaning-up-stale-preview-deployments\u002F","Cleaning Up Stale Preview Deployments",". The preview role should be able to write only the preview bucket, never production.",[27,1072,1074],{"id":1073},"pitfalls-rollback-notes","Pitfalls & Rollback Notes",[32,1076,1077,1083,1089,1099,1108],{},[35,1078,1079,1082],{},[418,1080,1081],{},"S3 website endpoint."," HTTP only, public bucket, no OAC. Use the REST endpoint.",[35,1084,1085,1088],{},[418,1086,1087],{},"403 for missing pages."," Private buckets return 403 for absent keys; map it to your 404 page in CloudFront error responses.",[35,1090,1091,1098],{},[418,1092,1093,1094,1097],{},"One ",[42,1095,1096],{},"--cache-control"," for everything."," Hashed assets and HTML need different lifetimes; one value is wrong for one of them.",[35,1100,1101,1107],{},[418,1102,1103,1106],{},[42,1104,1105],{},"--delete"," in the first sync."," Removing old assets before new HTML is live breaks pages still cached at the edge.",[35,1109,1110,1113,1114,25],{},[418,1111,1112],{},"Certificate in the wrong region."," CloudFront only reads ACM certificates from ",[42,1115,44],{},[27,1117,1119],{"id":1118},"conclusion","Conclusion",[14,1121,1122],{},"A production S3 and CloudFront deploy is a private bucket behind Origin Access Control, a viewer function for clean URLs, a response headers policy, and a deploy that uploads assets before HTML and deletes stale files last. On a 2,000-page docs site that produced edge performance indistinguishable from a managed host, a 71-second deploy and a monthly bill of about 42 USD at 1.2 million page views — with every access controlled by IAM and logged by CloudTrail.",[27,1124,1126],{"id":1125},"faq","FAQ",[1128,1129,1131],"h3",{"id":1130},"should-i-use-the-s3-website-endpoint-or-the-rest-endpoint","Should I use the S3 website endpoint or the REST endpoint?",[14,1133,1134],{},"Use the REST endpoint with a private bucket and CloudFront Origin Access Control. The website endpoint only serves HTTP, requires a public bucket, and cannot be locked to CloudFront. Handle index documents and redirects with a CloudFront Function instead.",[1128,1136,1138],{"id":1137},"how-do-i-avoid-serving-a-half-uploaded-site","How do I avoid serving a half-uploaded site?",[14,1140,1141],{},"Upload hashed assets first and HTML last, and delete stale files only after the new HTML is live. New pages then only reference assets that already exist, and old pages keep working until they are replaced.",[1128,1143,1145],{"id":1144},"do-i-need-to-invalidate-the-whole-distribution-on-every-deploy","Do I need to invalidate the whole distribution on every deploy?",[14,1147,1148],{},"No. If hashed assets have long immutable cache lifetimes and HTML is served with a short or revalidating lifetime, you only need to invalidate HTML paths, or nothing at all if HTML already revalidates. A wildcard invalidation is simple and within the free monthly allowance for most sites.",[1128,1150,1152],{"id":1151},"how-much-does-this-setup-cost","How much does this setup cost?",[14,1154,1155],{},"For a documentation site with about a million page views a month, expect tens of dollars, dominated by CloudFront data transfer and requests. S3 storage for a few hundred megabytes is negligible.",[27,1157,1159],{"id":1158},"related","Related",[32,1161,1162,1170,1175,1182,1189],{},[35,1163,1164,427,1167,1169],{},[418,1165,1166],{},"Parent:",[21,1168,24],{"href":23}," — the three self-hosting options.",[35,1171,1172,1174],{},[21,1173,242],{"href":241}," — the viewer-request rewrite.",[35,1176,1177,1181],{},[21,1178,1180],{"href":1179},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fself-hosting-static-sites\u002Fcloudfront-functions-for-redirects\u002F","CloudFront Functions for Redirects"," — redirect rules at the edge.",[35,1183,1184,1188],{},[21,1185,1187],{"href":1186},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fcdn-caching-rules-for-ssgs\u002Fpurging-the-cdn-cache-after-a-static-deploy\u002F","Purging the CDN Cache After a Static Deploy"," — invalidation strategy in depth.",[35,1190,1191,1193],{},[21,1192,55],{"href":54}," — the deploy role used here.",[1195,1196,1197],"style",{},"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 .sJ8bj, html code.shiki .sJ8bj{--shiki-default:#6A737D;--shiki-dark:#6A737D}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 .sZZnC, html code.shiki .sZZnC{--shiki-default:#032F62;--shiki-dark:#9ECBFF}html pre.shiki code .szBVR, html code.shiki .szBVR{--shiki-default:#D73A49;--shiki-dark:#F97583}html pre.shiki code .sScJk, html code.shiki .sScJk{--shiki-default:#6F42C1;--shiki-dark:#B392F0}html pre.shiki code .sj4cs, html code.shiki .sj4cs{--shiki-default:#005CC5;--shiki-dark:#79B8FF}",{"title":69,"searchDepth":82,"depth":82,"links":1199},[1200,1201,1202,1203,1204,1205,1206,1207,1208,1209,1210,1211,1217],{"id":29,"depth":82,"text":30},{"id":58,"depth":82,"text":59},{"id":404,"depth":82,"text":405},{"id":470,"depth":82,"text":471},{"id":760,"depth":82,"text":761},{"id":858,"depth":82,"text":859},{"id":934,"depth":82,"text":935},{"id":955,"depth":82,"text":956},{"id":1045,"depth":82,"text":1046},{"id":1073,"depth":82,"text":1074},{"id":1118,"depth":82,"text":1119},{"id":1125,"depth":82,"text":1126,"children":1212},[1213,1214,1215,1216],{"id":1130,"depth":88,"text":1131},{"id":1137,"depth":88,"text":1138},{"id":1144,"depth":88,"text":1145},{"id":1151,"depth":88,"text":1152},{"id":1158,"depth":82,"text":1159},[1219,1221,1224,1225],{"name":1220,"item":456},"Home",{"name":1222,"item":1223},"Production-Ready Deployment & CI\u002FCD Workflows","\u002Fproduction-ready-deployment-cicd-workflows\u002F",{"name":24,"item":23},{"name":5,"item":1226},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fself-hosting-static-sites\u002Fdeploying-a-static-site-to-s3-and-cloudfront\u002F","2026-09-18","Deploy a static site to a private S3 bucket behind CloudFront with Origin Access Control, split cache headers, ordered uploads and a targeted invalidation.","md",[1231,1232,1233,1234],{"q":1131,"a":1134},{"q":1138,"a":1141},{"q":1145,"a":1148},{"q":1152,"a":1155},{},true,"\u002Fproduction-ready-deployment-cicd-workflows\u002Fself-hosting-static-sites\u002Fdeploying-a-static-site-to-s3-and-cloudfront",{"title":5,"description":1228},"production-ready-deployment-cicd-workflows\u002Fself-hosting-static-sites\u002Fdeploying-a-static-site-to-s3-and-cloudfront\u002Findex","article","bBuujo38k62D5wVU0e1K8xIbKJZfwH9HQZfm1oqT2Bo",[1243,1246,1249,1252,1255,1258,1261,1264,1267,1270,1273,1276,1279,1282,1285,1288,1291,1294,1297,1300,1303,1306,1309,1312,1315,1318,1321,1324,1327,1330,1333,1336,1339,1342,1345,1348,1351,1354,1357,1360,1363,1366,1369,1372,1375,1378,1381,1384,1387,1390,1393,1396,1399,1402,1405,1408,1411,1413,1416,1419,1422,1425,1428,1431,1434,1437,1440,1443,1446,1449,1452,1455,1458,1461,1464,1467,1470,1473,1476,1479,1482,1485,1488,1491,1494,1497,1500,1503,1506,1509,1512,1515,1518,1521,1524,1527,1530,1533,1536,1539,1542,1545,1548,1551,1554,1557,1560,1563,1566,1569,1572,1575,1578,1581,1584,1587,1590,1593,1596,1599,1602,1605,1608,1611,1614,1617,1620,1623,1626,1629,1632,1635,1638,1641,1644,1647,1650,1653,1656,1659,1662,1665,1668,1671,1674,1677,1680,1683,1686,1689,1692,1695,1698,1700,1703,1706,1709,1712,1714,1717,1720,1723,1726,1729,1732,1735,1738,1741,1743,1746,1749,1751,1753,1754,1756,1759,1762,1765,1768,1771,1774,1777,1780],{"path":1244,"title":1245},"\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":1247,"title":1248},"\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":1250,"title":1251},"\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":1253,"title":1254},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fastro-vs-eleventy-for-documentation-sites","Astro vs Eleventy for Documentation Sites",{"path":1256,"title":1257},"\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":1259,"title":1260},"\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":1262,"title":1263},"\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":1265,"title":1266},"\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":1268,"title":1269},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fdocs-frameworks-docusaurus-starlight-vitepress","Docs Frameworks: Docusaurus, Starlight and VitePress",{"path":1271,"title":1272},"\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":1274,"title":1275},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fdocs-frameworks-docusaurus-starlight-vitepress\u002Fmigrating-from-mkdocs-to-starlight","Migrating from MkDocs to Starlight",{"path":1277,"title":1278},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fdocs-frameworks-docusaurus-starlight-vitepress\u002Fversioned-documentation-with-docusaurus","Versioned Documentation with Docusaurus",{"path":1280,"title":1281},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fdocs-frameworks-docusaurus-starlight-vitepress\u002Fvitepress-for-library-documentation","VitePress for Library Documentation",{"path":1283,"title":1284},"\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":1286,"title":1287},"\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":1289,"title":1290},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fhugo-build-times-for-large-repositories","Hugo Build Times for Large Repositories",{"path":1292,"title":1293},"\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":1295,"title":1296},"\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":1298,"title":1299},"\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":1301,"title":1302},"\u002Fchoosing-the-right-static-site-generator-for-production","Choosing the Right Static Site Generator for Production",{"path":1304,"title":1305},"\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":1307,"title":1308},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fjekyll-plugin-ecosystem","Jekyll Plugin Ecosystem",{"path":1310,"title":1311},"\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":1313,"title":1314},"\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":1316,"title":1317},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fjekyll-plugin-ecosystem\u002Fspeeding-up-slow-jekyll-builds","Speeding Up Slow Jekyll Builds",{"path":1319,"title":1320},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fjekyll-plugin-ecosystem\u002Fupgrading-jekyll-and-ruby-versions-safely","Upgrading Jekyll and Ruby Versions Safely",{"path":1322,"title":1323},"\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":1325,"title":1326},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fmigrating-between-static-site-generators","Migrating Between Static Site Generators",{"path":1328,"title":1329},"\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":1331,"title":1332},"\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":1334,"title":1335},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fmigrating-between-static-site-generators\u002Fmigrating-from-gatsby-to-astro","Migrating from Gatsby to Astro",{"path":1337,"title":1338},"\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":1340,"title":1341},"\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":1343,"title":1344},"\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":1346,"title":1347},"\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":1349,"title":1350},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fnextjs-static-export-for-content-sites","Next.js Static Export for Content Sites",{"path":1352,"title":1353},"\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":1355,"title":1356},"\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":1358,"title":1359},"\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":1361,"title":1362},"\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":1364,"title":1365},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fsearch-for-static-sites\u002Fadding-pagefind-to-an-astro-site","Adding Pagefind to an Astro Site",{"path":1367,"title":1368},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fsearch-for-static-sites\u002Fbuilding-a-lunr-index-at-build-time-in-eleventy","Building a Lunr Index at Build Time in Eleventy",{"path":1370,"title":1371},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fsearch-for-static-sites","Search for Static Sites",{"path":1373,"title":1374},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fsearch-for-static-sites\u002Findexing-hugo-sites-with-pagefind","Indexing Hugo Sites with Pagefind",{"path":1376,"title":1377},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fsearch-for-static-sites\u002Fmultilingual-search-on-static-sites","Multilingual Search on Static Sites",{"path":1379,"title":1380},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fsearch-for-static-sites\u002Fpagefind-vs-algolia-docsearch","Pagefind vs Algolia DocSearch",{"path":1382,"title":1383},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fsearch-for-static-sites\u002Fsearch-index-size-budgets-for-large-docs","Search Index Size Budgets for Large Docs",{"path":1385,"title":1386},"\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":1388,"title":1389},"\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":1391,"title":1392},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fssg-framework-selection-matrix\u002Fevaluating-ssg-accessibility-defaults","Evaluating SSG Accessibility Defaults",{"path":1394,"title":1395},"\u002Fchoosing-the-right-static-site-generator-for-production\u002Fssg-framework-selection-matrix","SSG Framework Selection Matrix",{"path":1397,"title":1398},"\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":1400,"title":1401},"\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":1403,"title":1404},"\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":1406,"title":1407},"\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":1409,"title":1410},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fcdn-caching-rules-for-ssgs","CDN Caching Rules for SSGs",{"path":1412,"title":1187},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fcdn-caching-rules-for-ssgs\u002Fpurging-the-cdn-cache-after-a-static-deploy",{"path":1414,"title":1415},"\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":1417,"title":1418},"\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":1420,"title":1421},"\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":1423,"title":1424},"\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":1426,"title":1427},"\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":1429,"title":1430},"\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":1432,"title":1433},"\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":1435,"title":1436},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fcumulative-layout-shift-fixes-for-static-sites","Cumulative Layout Shift Fixes for Static Sites",{"path":1438,"title":1439},"\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":1441,"title":1442},"\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":1444,"title":1445},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Ffont-loading-strategies-for-static-sites\u002Ffont-display-optional-vs-swap","font-display: optional vs swap",{"path":1447,"title":1448},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Ffont-loading-strategies-for-static-sites","Font Loading Strategies for Static Sites",{"path":1450,"title":1451},"\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":1453,"title":1454},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Ffont-loading-strategies-for-static-sites\u002Fpreloading-fonts-without-double-downloads","Preloading Fonts Without Double Downloads",{"path":1456,"title":1457},"\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":1459,"title":1460},"\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":1462,"title":1463},"\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":1465,"title":1466},"\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":1468,"title":1469},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fimage-optimization-pipelines-in-astro","Image Optimization Pipelines in Astro",{"path":1471,"title":1472},"\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":1474,"title":1475},"\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":1477,"title":1478},"\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":1480,"title":1481},"\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":1483,"title":1484},"\u002Fperformance-optimization-core-web-vitals-for-ssgs","Core Web Vitals Optimization for SSGs",{"path":1486,"title":1487},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fjavascript-hydration-partial-rendering\u002Fastro-islands-vs-full-hydration-performance","Astro Islands vs Full Hydration Performance",{"path":1489,"title":1490},"\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":1492,"title":1493},"\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":1495,"title":1496},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fjavascript-hydration-partial-rendering","JavaScript Hydration & Partial Rendering",{"path":1498,"title":1499},"\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":1501,"title":1502},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fjavascript-hydration-partial-rendering\u002Freplacing-react-islands-with-web-components","Replacing React Islands with Web Components",{"path":1504,"title":1505},"\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":1507,"title":1508},"\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":1510,"title":1511},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Flargest-contentful-paint-optimization-for-static-sites","Largest Contentful Paint Optimization for Static Sites",{"path":1513,"title":1514},"\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":1516,"title":1517},"\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":1519,"title":1520},"\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":1522,"title":1523},"\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":1525,"title":1526},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fperformance-budgets-and-lighthouse-ci","Performance Budgets and Lighthouse CI",{"path":1528,"title":1529},"\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":1531,"title":1532},"\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":1534,"title":1535},"\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":1537,"title":1538},"\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":1540,"title":1541},"\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":1543,"title":1544},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fresource-hints-and-navigation-speed\u002Fauditing-unused-preloads","Auditing Unused Preloads",{"path":1546,"title":1547},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fresource-hints-and-navigation-speed","Resource Hints and Navigation Speed",{"path":1549,"title":1550},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fresource-hints-and-navigation-speed\u002Finstant-navigation-with-speculation-rules","Instant Navigation with Speculation Rules",{"path":1552,"title":1553},"\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":1555,"title":1556},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fresource-hints-and-navigation-speed\u002Fprefetching-links-in-astro","Prefetching Links in Astro",{"path":1558,"title":1559},"\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":1561,"title":1562},"\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":1564,"title":1565},"\u002Fperformance-optimization-core-web-vitals-for-ssgs\u002Fthird-party-script-performance-on-static-sites","Third-Party Script Performance on Static Sites",{"path":1567,"title":1568},"\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":1570,"title":1571},"\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":1573,"title":1574},"\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":1576,"title":1577},"\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":1579,"title":1580},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fcloudflare-pages-edge-caching-setup\u002Fautomating-eleventy-deployments-with-cloudflare-pages","Automating Eleventy Deployments on Cloudflare Pages",{"path":1582,"title":1583},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fcloudflare-pages-edge-caching-setup\u002Fconfiguring-redirects-on-cloudflare-pages","Configuring Redirects on Cloudflare Pages",{"path":1585,"title":1586},"\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":1588,"title":1589},"\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":1591,"title":1592},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fcloudflare-pages-edge-caching-setup","Cloudflare Pages Edge Caching Setup",{"path":1594,"title":1595},"\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":1597,"title":1598},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fcontent-workflows-for-documentation-teams\u002Fchecking-links-in-pull-requests","Checking Links in Pull Requests",{"path":1600,"title":1601},"\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":1603,"title":1604},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fcontent-workflows-for-documentation-teams\u002Feditorial-checks-with-vale-in-ci","Editorial Checks with Vale in CI",{"path":1606,"title":1607},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fcontent-workflows-for-documentation-teams","Content Workflows for Documentation Teams",{"path":1609,"title":1610},"\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":1612,"title":1613},"\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":1615,"title":1616},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fgithub-actions-for-automated-ssg-builds\u002Fbuilding-astro-sites-with-github-actions","Building Astro Sites with GitHub Actions",{"path":1618,"title":1619},"\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":1621,"title":1622},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fgithub-actions-for-automated-ssg-builds\u002Fdeploying-to-github-pages-with-actions","Deploying to GitHub Pages with Actions",{"path":1624,"title":1625},"\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":1627,"title":1628},"\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":1630,"title":1631},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fgithub-actions-for-automated-ssg-builds","GitHub Actions for Automated SSG Builds",{"path":1633,"title":1634},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fgithub-actions-for-automated-ssg-builds\u002Fmatrix-builds-for-multi-site-monorepos","Matrix Builds for Multi-Site Monorepos",{"path":1636,"title":1637},"\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":1639,"title":1640},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fincremental-builds-and-build-caching-for-ssgs\u002Fenabling-incremental-builds-in-eleventy","Enabling Incremental Builds in Eleventy",{"path":1642,"title":1643},"\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":1645,"title":1646},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fincremental-builds-and-build-caching-for-ssgs","Incremental Builds and Build Caching for SSGs",{"path":1648,"title":1649},"\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":1651,"title":1652},"\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":1654,"title":1655},"\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":1657,"title":1658},"\u002Fproduction-ready-deployment-cicd-workflows","Production-Ready Deployment & CI\u002FCD for SSGs",{"path":1660,"title":1661},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fmonitoring-static-sites-in-production\u002Falerting-on-cache-hit-ratio-drops","Alerting on Cache Hit Ratio Drops",{"path":1663,"title":1664},"\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":1666,"title":1667},"\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":1669,"title":1670},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fmonitoring-static-sites-in-production","Monitoring Static Sites in Production",{"path":1672,"title":1673},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fmonitoring-static-sites-in-production\u002Flogging-404s-at-the-edge","Logging 404s at the Edge",{"path":1675,"title":1676},"\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":1678,"title":1679},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fnetlify-vs-vercel-deployment-strategies\u002Fconfiguring-vercel-for-hugo-and-eleventy","Configuring Vercel for Hugo and Eleventy",{"path":1681,"title":1682},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fnetlify-vs-vercel-deployment-strategies","Netlify vs Vercel Deployment Strategies",{"path":1684,"title":1685},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fnetlify-vs-vercel-deployment-strategies\u002Fnetlify-build-hooks-for-content-updates","Netlify Build Hooks for Content Updates",{"path":1687,"title":1688},"\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":1690,"title":1691},"\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":1693,"title":1694},"\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":1696,"title":1697},"\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":1699,"title":1069},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fpreview-environments-for-pull-requests\u002Fcleaning-up-stale-preview-deployments",{"path":1701,"title":1702},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fpreview-environments-for-pull-requests","Preview Environments for Pull Requests",{"path":1704,"title":1705},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fpreview-environments-for-pull-requests\u002Fpassword-protecting-preview-deployments","Password-Protecting Preview Deployments",{"path":1707,"title":1708},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fpreview-environments-for-pull-requests\u002Fpreviewing-headless-cms-drafts","Previewing Headless CMS Drafts",{"path":1710,"title":1711},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fpreview-environments-for-pull-requests\u002Fvisual-regression-testing-on-preview-deploys","Visual Regression Testing on Preview Deploys",{"path":1713,"title":656},"\u002Fproduction-ready-deployment-cicd-workflows\u002Frollbacks-and-deploy-safety-for-static-sites\u002Fatomic-deploys-vs-incremental-uploads",{"path":1715,"title":1716},"\u002Fproduction-ready-deployment-cicd-workflows\u002Frollbacks-and-deploy-safety-for-static-sites\u002Fcanary-releases-for-static-sites","Canary Releases for Static Sites",{"path":1718,"title":1719},"\u002Fproduction-ready-deployment-cicd-workflows\u002Frollbacks-and-deploy-safety-for-static-sites\u002Ffeature-flags-on-static-sites","Feature Flags on Static Sites",{"path":1721,"title":1722},"\u002Fproduction-ready-deployment-cicd-workflows\u002Frollbacks-and-deploy-safety-for-static-sites","Rollbacks and Deploy Safety for Static Sites",{"path":1724,"title":1725},"\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":1727,"title":1728},"\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":1730,"title":1731},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fsecurity-headers-for-static-sites\u002Fauditing-npm-dependencies-in-ssg-pipelines","Auditing npm Dependencies in SSG Pipelines",{"path":1733,"title":1734},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fsecurity-headers-for-static-sites\u002Fenabling-hsts-and-preload-safely","Enabling HSTS and Preload Safely",{"path":1736,"title":1737},"\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":1739,"title":1740},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fsecurity-headers-for-static-sites","Security Headers and Hardening for Static Sites",{"path":1742,"title":55},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fsecurity-headers-for-static-sites\u002Fsecuring-deploy-credentials-with-github-oidc",{"path":1744,"title":1745},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fsecurity-headers-for-static-sites\u002Fsubresource-integrity-for-third-party-assets","Subresource Integrity for Third-Party Assets",{"path":1747,"title":1748},"\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":1750,"title":242},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fself-hosting-static-sites\u002Fclean-urls-and-trailing-slashes-on-s3",{"path":1752,"title":1180},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fself-hosting-static-sites\u002Fcloudfront-functions-for-redirects",{"path":1237,"title":5},{"path":1755,"title":24},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fself-hosting-static-sites",{"path":1757,"title":1758},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fself-hosting-static-sites\u002Fserving-a-static-site-with-caddy","Serving a Static Site with Caddy",{"path":1760,"title":1761},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fself-hosting-static-sites\u002Fserving-a-static-site-with-nginx","Serving a Static Site with Nginx",{"path":1763,"title":1764},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fself-hosting-static-sites\u002Fzero-downtime-deploys-with-symlink-swaps","Zero-Downtime Deploys with Symlink Swaps",{"path":1766,"title":1767},"\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":1769,"title":1770},"\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":1772,"title":1773},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fserverless-functions-for-static-sites","Serverless Functions for Static Sites",{"path":1775,"title":1776},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fserverless-functions-for-static-sites\u002Fnetlify-functions-vs-cloudflare-workers","Netlify Functions vs Cloudflare Workers",{"path":1778,"title":1779},"\u002Fproduction-ready-deployment-cicd-workflows\u002Fserverless-functions-for-static-sites\u002Fprotecting-a-static-site-behind-authentication","Protecting a Static Site Behind Authentication",{"path":1781,"title":1782},"\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",1789722847788]