Menu

How a static Astro site with 11,800 pages keeps a Bali events calendar fresh
📰

How a static Astro site with 11,800 pages keeps a Bali events calendar fresh

DEV Community: astro·Bali Afisha·3 days ago
#7TsF1SJ2
#devtoastro#devto#dev#pages#build
Long article (289 words) — no AI summary yet.
Reading 0:00
15s threshold

Bali has thousands of events a week, scattered across Instagram stories, Telegram chats and venue websites. We built a calendar that gathers them into one place. This post is about how it stays fresh without a heavy backend.

The shape of the system

A bot collects events from public sources and exports one JSON file.

An Astro site turns that file into roughly 11,800 static pages: areas, categories, venues, days and guides.

A Cloudflare Worker with D1 and KV handles the small dynamic parts, such as subscriptions and counters.

A scheduled job rebuilds and deploys the site every hour, then pings search engines about changed URLs.

Why static

Event pages are read far more than they are written. Static HTML on a CDN is cheap, fast on slow mobile networks, and easy to crawl.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.