Repository navigation
Closed
Description
Context
ADR 0331 proposes moving production mecatl.dev hosting from S3 and CloudFront to the Vercel project already used for pull request previews. This issue implements that decision in two stages: production cutover work after the DNS update, followed by removal of the AWS deployment path after a stability and DNS propagation window.
This implements the direction discussed in #1009 and proposed in #1382.
Stage 1: Complete the production cutover
Begin this stage after the DNS update is complete and Vercel serves the production mecatl.dev domain.
- Update ADR 0331's status from Proposed to Accepted.
- Gate the GTM script on
process.env.VERCEL_ENV === 'production', matching the production-deployment filter instacklok/docs-website. Confirm that tracking remains disabled for local builds and Vercel Preview deployments. - Enable the
vercel-analyticsDocusaurus plugin with the same production configuration used bystacklok/docs-website. - Replace
@docusaurus/plugin-client-redirectsand its configuration withwebsite/vercel.json. Migrate the existing/docs/introto/docsmapping as a permanent Vercel redirect and verify that Vercel returns an HTTP redirect before serving the static site. - Remove the client redirect dependency and update
website/package-lock.json. - Update active internal guidance and workflow comments that describe S3, CloudFront, or the client redirect plugin as the current production path. At minimum, review
website/AGENTS.mdand thedeploy-site.ymlreference in.github/workflows/ci.yml. - Verify the production site, production-only tracking, Vercel Analytics, and the migrated redirect.
- Run
task site:build,task docs, and the applicable repository checks.
Stability and DNS propagation window
Keep the S3 and CloudFront deployment path available for rollback for a few days after the cutover. Proceed to Stage 2 only after:
- Vercel production has remained stable for the agreed observation period;
- the DNS change has had time to propagate across public resolvers; and
- no issue requiring rollback remains open.
Stage 2: Remove the AWS deployment path
- Remove
.github/workflows/deploy-site.yml. - Remove or update any remaining repository references that treat the AWS workflow as the production deployment path.
- Inventory repository-level and
production-environment GitHub Actions variables and secrets, and delete any that exist only for the S3 and CloudFront deployment. The current workflow uses GitHub OIDC, and no matching variables or secrets were present when this issue was created. - Confirm that pull request and production Vercel deployments still succeed after the AWS workflow is removed.
Definition of done
- Vercel is the authoritative production host for
mecatl.dev. - GTM and Vercel Analytics run only in Vercel Production deployments.
/docs/introredirects to/docsthrough a Vercel HTTP response.- Active repository guidance describes Vercel as the production host and redirect owner.
- The S3 and CloudFront deployment workflow and any repository credentials used only by it are removed after the stability window.
Metadata
Metadata
Assignees
Labels
No labels
Activity