Skip to content

Complete the mecatl.dev cutover from CloudFront to Vercel #1438

Closed

Description

@danbarr

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 in stacklok/docs-website. Confirm that tracking remains disabled for local builds and Vercel Preview deployments.
  • Enable the vercel-analytics Docusaurus plugin with the same production configuration used by stacklok/docs-website.
  • Replace @docusaurus/plugin-client-redirects and its configuration with website/vercel.json. Migrate the existing /docs/intro to /docs mapping 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.md and the deploy-site.yml reference 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/intro redirects to /docs through 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.

Activity

  1. self-assigned this
    on Sep 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions