17 Commits
Author SHA1 Message Date
SluijsensandClaude Sonnet 5.5 b12ae37f29 Removes the nightly test build: the CMS host injects current data into the HTML
The schedule trigger and its conditions in the jobs are gone; docs say that a
content change needs no rebuild (NFR-10) and that production gets the same
only once it is served by the CMS host.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-17 08:32:52 +01:00
SluijsensandClaude Sonnet 5.5 db86332c1f Opens the contact form through a build switch instead of the TEST ONLY commit; closes the AI-DLC records
Continuous Integration / check (pull_request) Successful in 2m25s
Continuous Integration / build-test (pull_request) Skipped
Continuous Integration / deploy-test (pull_request) Skipped
Continuous Integration / lighthouse (pull_request) Successful in 9m2s
Continuous Integration / deploy-production (pull_request) Skipped
The form is closed unless the build sets VITE_CONTACT_FORM_ENABLED=true (only
the test build does), so d449e76 no longer has to be undone before the merge.
Status files of contact-form-cms, asf-packages-cms, asf-cms-host-injection and
asf-translation-files are closed; Build and Test summary added.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-16 12:01:29 +01:00
SluijsensandClaude Sonnet 5.5 9eeb05f8fa Lets the test build present itself under its own address
VITE_SITE_URL sets the origin used for canonical, og:url, og:image, JSON-LD
and the sitemap. Only the test build sets it (https://test.andreaslop.nl);
the production artifact keeps https://andreaslop.nl. Only a clean https
origin (or http on localhost) is accepted, anything else falls back to
production.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-15 11:50:11 +01:00
SluijsensandClaude Sonnet 5.5 4cae76b21d Builds the test site separately with the CMS packages and adds a nightly test build
The check job builds dist without a CMS address, so what goes to production
keeps the committed package list. A new build-test job builds with
OFFERINGS_URL from ASF_OFFERINGS_URL_TEST and feeds only deploy-test. A nightly
schedule (03:15 UTC) deploys the test site; Lighthouse is skipped for it.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-12 09:10:52 +01:00
SluijsensandClaude Sonnet 5.5 5bfbde1881 Reads the shoot packages and an optional banner from the CMS at build time
The build asks GET /api/v1/offerings and bakes the packages into the pages,
with a committed snapshot as fallback so a CMS outage never breaks the build
or shows an empty price. The form choices and ?pakket= use the same list. An
offering with layout=banner becomes an optional band under the price cards.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-12 08:13:01 +01:00
SluijsensandClaude Sonnet 5.5 41a6e7be5a Prepares the test site for the CMS host
The test route on the proxy Pi now points at the CMS host on port 5200.
verify-deployment.sh gets a --cms mode that checks the exact security
headers, caching, gzip only, a percent-encoded redirect, the 405 for
POST, and the CMS routes. The deploy-test job uses it once the Gitea
variable ASF_TEST_SERVED_BY_CMS is true.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-08 02:05:59 +01:00
SluijsensandClaude Opus 5.5 e4e7f8c82c Adds the URL rules to the preview server, IIS config and deploy
The preview server and web.config now follow the same URLs as nginx, without
the SPA fallback. Lighthouse exceptions need a recorded reason and the 404 page
is audited through an opt-in route. The deploy checks the build first and the
served result afterwards. The IIS rules stay unverified until a host exists.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-01 18:13:21 +01:00
SluijsensandClaude Opus 5.5 5ae1c5e999 Keeps the CI nginx package from starting a service
CI jobs share the host's network, so that service would try to bind the
runner's port 80. The tests start their own nginx on a free port.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-01 03:01:25 +01:00
SluijsensandClaude Opus 5.5 33334b889d Generates the nginx rules for prerendered pages
Pages now map to their html file, other forms get one redirect, unknown URLs
get a real 404 and responses are compressed. A browser-free test suite runs the
rules against a real nginx, in CI only so far.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-01 03:00:07 +01:00
SluijsensandClaude Opus 5.5 8867c7833c Runs the browser tests in CI on the client output
The build artifact is now dist/client, so only that goes to the deploy jobs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 19:06:41 +01:00
SluijsensandClaude Opus 5.5 0eec9a4ea0 Runs deploys first and lets a second runner share the work
Continuous Integration / check (pull_request) Successful in 6m0s
Continuous Integration / deploy-test (pull_request) Skipped
Continuous Integration / lighthouse (pull_request) Failing after 1m13s
Continuous Integration / deploy-production (pull_request) Skipped
Jobs now pick runners by label: check and Lighthouse run on any Linux runner,
deploys only on the Pi. The test deploy is listed before Lighthouse, so a single
runner deploys first while two runners run both at once.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19 14:17:12 +02:00
SluijsensandClaude Opus 5.5 6d3a1566c2 Adds Sentry and Umami monitoring to the site
Continuous Integration / lighthouse (pull_request) Canceled after 0s
Continuous Integration / deploy-test (pull_request) Canceled after 0s
Continuous Integration / deploy-production (pull_request) Canceled after 0s
Continuous Integration / check (pull_request) Canceled after 2m22s
Sentry loads after the page and reports errors only, without personal data;
Umami counts visits per environment. Both only run on andreaslop.nl and
test.andreaslop.nl. The CSP allows just these two hosts, and builds carry the
commit SHA as release.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19 12:08:47 +02:00
SluijsensandClaude Opus 5.5 67ef16b9f2 Lets the test deploy work with group write access
`scp -r dist/.` also sets the mode of the target folder, which only its
owner may do. Copying the contents (`dist/*`, with dotglob for hidden
files) leaves the folder itself alone, so group write access on the test
folder is enough.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19 09:32:23 +02:00
SluijsensandClaude Opus 5.5 a87602ef5a Deploys to test without waiting for Lighthouse
Test exists to try things out, so it now deploys as soon as the check
job passes; Lighthouse runs alongside and its reports are information.
Production still waits for both check and Lighthouse, so accessibility,
best-practices and SEO problems never go live.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19 09:01:45 +02:00
SluijsensandClaude Opus 5.5 23f7020ff5 Makes Lighthouse performance report-only in CI
Continuous Integration / check (pull_request) Successful in 5m56s
Continuous Integration / lighthouse (pull_request) Successful in 12m13s
Continuous Integration / deploy-test (pull_request) Skipped
Continuous Integration / deploy-production (pull_request) Skipped
Lighthouse slows the CPU 4x relative to the measuring machine, so the
Raspberry Pi runner scores performance 30-40 points lower than a PC for
the same build. In CI the performance assertions now only warn;
accessibility, best practices and SEO still block, and performance still
blocks in `pnpm check` on a PC. Mobile and desktop reports go to
separate folders and are attached to every run as an artifact.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19 01:23:06 +02:00
SluijsensandClaude Opus 5.5 295adc2a9c Fixes Chrome crashing in the CI container during Lighthouse
Continuous Integration / check (pull_request) Successful in 6m10s
Continuous Integration / lighthouse (pull_request) Failing after 9m39s
Continuous Integration / deploy-test (pull_request) Skipped
Continuous Integration / deploy-production (pull_request) Skipped
The container's /dev/shm is limited to 64 MB, which makes the browser
tab crash on the image-heavy home page. Chrome now uses /tmp instead
via --disable-dev-shm-usage.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19 00:56:27 +02:00
SluijsensandClaude Opus 5.5 e6436601a4 Adds Gitea Actions CI/CD for test and production
Continuous Integration / check (pull_request) Failing after 6m55s
Continuous Integration / lighthouse (pull_request) Skipped
Continuous Integration / deploy-test (pull_request) Skipped
Continuous Integration / deploy-production (pull_request) Skipped
The pipeline runs lint, format, tests, build, dependency audit and
Lighthouse (mobile and desktop, Playwright Chromium on the arm64 runner)
on every pull request, push to master and manual run.

Pushes to master deploy to test automatically, and any branch can be
deployed to test manually. Test is a Raspberry Pi with nginx next to the
current WordPress site; the deploy refuses folders containing WordPress.
Production deploys are manual and only from release/* branches, over
FTP with TLS to the IIS webhost.

The IIS web.config and both nginx configs are generated from the same
security header list as the Vite servers, with a test that fails when
the generated files drift. Adds .gitattributes for LF line endings and
pins pnpm through packageManager.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-19 00:18:51 +02:00