You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
vibed/quotesdb/.beans/quotesdb-l09d--configure-cu...

44 lines
1.4 KiB
Markdown

---
# quotesdb-l09d
title: Configure custom domain quotes.elijah.run → Cloudflare Pages (DNS record + Pages domain binding)
status: completed
type: task
priority: normal
created_at: 2026-03-10T23:32:07Z
updated_at: 2026-03-10T23:32:15Z
blocked_by:
- quotesdb-qt7m
---
<context>
Infrastructure is managed with OpenTofu using the Cloudflare provider. Configuration lives in `infra/`. Resources include a Cloudflare Worker (API), Cloudflare D1 database (bound to the worker), and a Cloudflare Pages project (UI frontend).
The frontend is served at the custom domain `quotes.elijah.run`. This requires a DNS record pointing to Cloudflare Pages and a custom domain binding on the Pages project.
</context>
<goal>
Configure the custom domain in `infra/pages.tf` (or `infra/dns.tf`):
1. `cloudflare_pages_domain` resource — binds `quotes.elijah.run` to the Pages project
2. `cloudflare_record` resource — DNS CNAME record pointing `quotes` → the Pages `*.pages.dev` domain
Every block must have a comment.
</goal>
<constraints>
- The Cloudflare zone ID for `elijah.run` must be provided as a variable or looked up via a `data` source.
- SSL is handled automatically by Cloudflare — no certificate resources needed.
</constraints>
<validation>
Run from the `infra/` directory:
```sh
tofu validate
tofu plan
```
</validation>
<commit>
`feat(quotesdb): configure custom domain quotes.elijah.run for Cloudflare Pages`
</commit>