Skip to content

feat: Add schema S3/CloudFront deploy, CLAUDE.md, and deploy docs - #435

Merged
rongquan1 merged 1 commit into
masterfrom
develop
Jul 9, 2026
Merged

feat: Add schema S3/CloudFront deploy, CLAUDE.md, and deploy docs#435
rongquan1 merged 1 commit into
masterfrom
develop

Conversation

@rongquan1

Copy link
Copy Markdown
Contributor
  • deploy-schema.yml: publish schema/ (schemas, examples, W3C VC contexts) to S3 behind CloudFront. DEV auto-deploys on push to develop (DEV_* creds); PROD is manual only via workflow_dispatch from master (AWS_* creds). Bucket and distribution id come from repository secrets. Runs publishSchema.sh, aws s3 sync, then a CloudFront invalidation.
  • publishSchema.sh: include the W3C VC versions (certificate-of-awards/2.0, testimonials/2.0, transcripts/3.0) and copy each context.json.
  • deploy/cloudfront-rewrite.js + deploy/README.md: CloudFront viewer-request function that rewrites extension-less schema paths (e.g. /transcripts/3.0, including the dot in the version) to /index.json — replaces the Netlify _redirects — plus one-time setup docs.
  • Remove public/_redirects (Netlify-only; superseded by the CloudFront function).
  • CLAUDE.md: onboarding/context doc — architecture, dev workflow, testing, adding a schema version, hosting, and known gotchas.
  • .eslintignore: exclude deploy/ (CloudFront runtime code, not library source).

- deploy-schema.yml: publish schema/ (schemas, examples, W3C VC contexts) to
  S3 behind CloudFront. DEV auto-deploys on push to develop (DEV_* creds);
  PROD is manual only via workflow_dispatch from master (AWS_* creds). Bucket
  and distribution id come from repository secrets. Runs publishSchema.sh,
  aws s3 sync, then a CloudFront invalidation.
- publishSchema.sh: include the W3C VC versions (certificate-of-awards/2.0,
  testimonials/2.0, transcripts/3.0) and copy each context.json.
- deploy/cloudfront-rewrite.js + deploy/README.md: CloudFront viewer-request
  function that rewrites extension-less schema paths (e.g. /transcripts/3.0,
  including the dot in the version) to /index.json — replaces the Netlify
  _redirects — plus one-time setup docs.
- Remove public/_redirects (Netlify-only; superseded by the CloudFront function).
- CLAUDE.md: onboarding/context doc — architecture, dev workflow, testing,
  adding a schema version, hosting, and known gotchas.
- .eslintignore: exclude deploy/ (CloudFront runtime code, not library source).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@rongquan1
rongquan1 requested a review from manishdex25 July 9, 2026 07:52
@rongquan1
rongquan1 merged commit 41e630e into master Jul 9, 2026
2 checks passed
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.

2 participants