Skip to content

fix(ssg): validate local assets in output reports - #80

Merged
smiggleworth merged 3 commits into
mainfrom
fix/ssg-asset-reference-validation
Aug 7, 2026
Merged

fix(ssg): validate local assets in output reports#80
smiggleworth merged 3 commits into
mainfrom
fix/ssg-asset-reference-validation

Conversation

@smiggleworth

Copy link
Copy Markdown
Contributor

Closes #79

Correctness deep dive

The SSG output report previously filtered missing local JS/CSS references out of route metadata, allowing a generated site with broken asset links to pass verification.

TDD

  • added a regression with a missing route-local module asset
  • red before the fix: report generation resolved successfully
  • green after the fix: report generation fails with the route and asset path

Scope

  • validates only local JS/CSS references; external URLs remain excluded
  • preserves deterministic sorting and existing budget/report behavior

Validation

  • npm run lint
  • npm run typecheck
  • npm test (18 files, 226 tests)

Copilot AI lite review requested due to automatic review settings August 6, 2026 13:20

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@smiggleworth
smiggleworth merged commit ad9210a into main Aug 7, 2026
7 checks passed
@smiggleworth
smiggleworth deleted the fix/ssg-asset-reference-validation branch August 7, 2026 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enhancement: add a first-class static-site preset and verification workflow

2 participants