Skip to content

Replace Worker with unified CF Pages deployment when main site moves to Astro #117

@MarketDataApp

Description

@MarketDataApp

Context

The docs site currently uses a Cloudflare Worker to route www.marketdata.app/docs/* to a separate CF Pages project. This is necessary because the main site is WordPress on a different server.

Future Enhancement

When the main site migrates from WordPress to Astro (also on CF Pages), we can eliminate the Worker entirely by deploying both sites into a single CF Pages project.

Architecture

  • Create an orchestrator workflow (can live in either repo or a shared one)
  • Each repo triggers the orchestrator on successful build via repository_dispatch
  • Orchestrator pulls latest build artifacts from both repos, merges into one output directory, deploys to a single CF Pages project
  • Delete the Worker

Benefits

  • No Worker invocations (saves cost and complexity)
  • Single deployment target
  • Simpler routing — CF Pages serves everything directly

Depends on

  • Main site migration from WordPress to Astro

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions