Frontend Deploy
frontend-deploy.yml builds the Angular SPA and publishes it to the S3 bucket
behind CloudFront. It runs on changes under frontend/ai.client/** and on
manual dispatch.
What frontend-deploy.yml does
Section titled “What frontend-deploy.yml does”- Build —
npm run buildinfrontend/ai.client/, producing the production bundle underdist/ai.client/browser/. - Sync —
aws s3 synccopies that directory to the SPA bucket. - Invalidate — issues a CloudFront invalidation so clients pick up the new bundle.
Content-hash and invalidation
Section titled “Content-hash and invalidation”The build is content-hashed, like the backend images. If no source changed, the
sync is effectively a no-op and the invalidation is minimal — just index.html
and index.csr.html — rather than a full distribution purge. CloudFront can take
a few minutes to propagate after a first deploy.
When to re-run
Section titled “When to re-run”Re-run whenever you change the SPA under frontend/ai.client/**. It depends only
on the SPA bucket and distribution created by platform.yml, so there’s no need
to re-run the platform workflow alongside it.