fix(build): register political-intelligence_{lang}.html as Vite inputs#1963
Merged
fix(build): register political-intelligence_{lang}.html as Vite inputs#1963
Conversation
…erify in deploy Agent-Logs-Url: https://github.com/Hack23/riksdagsmonitor/sessions/7833f207-e6bf-43df-b9c3-f7c47b206b7f Co-authored-by: pethers <1726836+pethers@users.noreply.github.com>
Agent-Logs-Url: https://github.com/Hack23/riksdagsmonitor/sessions/7833f207-e6bf-43df-b9c3-f7c47b206b7f Co-authored-by: pethers <1726836+pethers@users.noreply.github.com>
Copilot created this pull request from a session on behalf of
pethers
April 23, 2026 14:10
View session
Contributor
🏷️ Automatic Labeling SummaryThis PR has been automatically labeled based on the files changed and PR metadata. Applied Labels: javascript,workflow,ci-cd,deployment,performance,size-s Label Categories
For more information, see |
Contributor
🔍 Lighthouse Performance Audit
📥 Download full Lighthouse report Budget Compliance: Performance budgets enforced via |
Contributor
There was a problem hiding this comment.
Pull request overview
Fixes missing build outputs for the Political Intelligence static pages by registering them as explicit Vite multi-page inputs, and adds a deployment-time guard to prevent silent regressions.
Changes:
- Add all 14
political-intelligence*.htmlpages tobuild.rollupOptions.inputsovite buildemits them intodist/. - Extend the deploy workflow’s artifact verification to assert the Political Intelligence pages are present in
dist/(including a Swedish and an RTL spot-check).
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| vite.config.js | Registers Political Intelligence HTML files as Vite/Rollup inputs so they are emitted to dist/ and deployed. |
| .github/workflows/deploy-s3.yml | Adds build artifact checks to fail fast if Political Intelligence pages are missing from dist/. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
https://riksdagsmonitor.com/political-intelligence*.htmlreturns 404 for all 14 locales. #1962 added the generator, pages, footer links, and sitemap entries — but not the Vite inputs.vite buildonly emits HTML listed inrollupOptions.input, so the PI pages never reacheddist/anddeploy-s3.yml(uploadsdist/recursively) never pushed them to S3/CloudFront.Changes
vite.config.js— add 14political-intelligence*entries alongside thepolitician-dashboard*block..github/workflows/deploy-s3.yml— extend the Verify build artifacts step with spot-checks forpolitical-intelligence.html,_sv.html, and_ar.html(RTL), failing with a message pointing at the Vite input list so this can't recur silently.Notes
_noto match the generator output and every sibling_nofile repo-wide; the BCP-47nbmigration is tracked site-wide, not per-page.