← Back to Pull requests

[autoconfig] Build Hugo sites on cf #17280

Closed
unknown closed this pull request without merging on Nov 30, 2026 14:12 UTC
View on GitHub
unknown unknown commented on Nov 29, 2026 18:46 UTC
Author

Part of cloudflare/cf#804. Stacked on #17247.

On cf, a Hugo site is now built with hugo and deployed from its output folder, the way the Wrangler target already handles Hugo, including older sites that use config.toml. The folder is public, or the publishDir that Hugo's config sets, read from the root config, config/_default and config/production in Hugo's order. More than one config file in one place is refused. Frameworks can now report the static site their settings build (findStaticSite); detection calls it once, and setup on cf sends such projects to one shared static setup. Hugo is a cf-only framework built on the Static class. Its deploy script names both steps, such as hugo && cf deploy public, so npm run deploy doesn't depend on detection and the user can see and change what runs.

---

<!--
Please don't delete the checkboxes <3
The following selections do not need to be completed if this PR only contains changes to .md files
-->

  • Tests

  • - [x] Tests included/updated
    - [ ] Automated tests not possible - manual testing has been completed as follows:
    - [ ] Additional testing not necessary because:
  • Public documentation

  • - [ ] Cloudflare docs PR(s): <!--e.g. <https://github.com/cloudflare/cloudflare-docs/pull/>...-->
    - [x] Documentation not necessary because: the Cloudflare docs don't cover autoconfig's API

    Diff: 170 lines (+127 / -43) across 2 files Reviewer: workers-devprod Review duration: 1165m
    All Vouch review confidence checks passed
    Residual risk 0.25 = Change Risk (0.58) × (1 − Review Confidence (0.58)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.58 · 170 lines diff across 2 files
    0.58
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    57%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.308
    Shallow Review Depth shallow_review_depth
    0.289
    Sensitive Paths sensitive_paths
    0.058
    Real PR Conversation Timeline
    1 comments
    "Review active on #17280"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: low confidence: 58.0% reviewed sensitive_module
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 58.4% (MEDIUM) · Higher = larger blast radius
    58.4%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 58.0% · Lower = rushed or shallow review
    58.0%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 24.5% · Safe to merge
    24.5%