-
Notifications
You must be signed in to change notification settings - Fork 6
Closed
Description
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels