Every morning, at 9:30am, a Cloudflare
cron trigger
runs, hitting a
Worker. That
worker calls out to
Google's Gemini which
returns a creative image prompt for the day. It then sends the prompt to
DALL-E which returns a generated image.
It then stores the generated image and the prompt that created it in an
R2 bucket along with updating a manifest
of all images and prompts. The final step is publishing the update to my
Cloudflare Pages application.
The Worker hits a URL which triggers a re-build of the site, and the site itself has a
pre-build which fetches the manifest, and generates a site which displays the images and
prompts.