Cloudflare website for Askfortask.co.uk, matching the structure used by the Pinglo site.
This is the public company/product home for ASK FOR TASK LTD, the operator behind Pinglo.
For the static pages:
python3 -m http.server 8788 --directory publicThen visit http://localhost:8788.
For the Worker API and D1 binding:
npx wrangler devCreate the D1 database:
npx wrangler d1 create askfortask_messagesCopy the returned database ID into wrangler.jsonc if it changes.
Apply the migration:
npx wrangler d1 migrations apply askfortask_messages --remoteDeploy to the existing Cloudflare Worker service askfortask with Wrangler:
npx wrangler deployIn Cloudflare, add routes/custom domains for:
askfortask.co.ukwww.askfortask.co.uk
The included _redirects file redirects www to the root domain when served through the static asset layer.
The contact form posts to /api/contact. The Worker validates the message, stores a copy in D1 when available, and sends the enquiry to admin@askfortask.co.uk through the Resend email API.
Set these Worker variables/secrets in Cloudflare:
- Secret:
RESEND_API_KEY - Optional variable:
CONTACT_TO=admin@askfortask.co.uk - Optional variable:
CONTACT_FROM=Ask for Task <contact@askfortask.co.uk>
The sending domain used in CONTACT_FROM must be verified in Resend.