DEV Community

Corbin Hand
Corbin Hand

Posted on

A winds board for skydiving hangar TVs: Next.js on Cloudflare Workers

I'm the developer of JumpAloft, a skydiving logbook and winds app for iPhone. The website also has a free winds board for drop zones: a page that stays open on a hangar TV and shows the measured wind, winds aloft by altitude and several forecast models side by side. This post covers how that page is built and what I'd do again.

The constraint: one screen, no scrolling, all day

A hangar TV has no keyboard and nobody to reload it. The board has to fit the screen without page scroll, keep itself fresh, and never show an old number without saying how old it is. Every reading carries its age, and the layout tests fail if the page scrolls.

The stack

  • Next.js 15 (App Router) and TypeScript, styled with Tailwind.
  • Cloudflare Workers through @opennextjs/cloudflare, so a deploy is opennextjs-cloudflare build && opennextjs-cloudflare deploy.
  • A separate API serves the board data. The page loads the model catalog first, then each forecast model in parallel.
  • Pages revalidate every 60 seconds, so a request after a quiet minute pays for fresh data and the next ones are served fast. In my own timing the first request after idle took about a second and the next ones about 70 ms.

Things that went wrong, so you don't repeat them

  1. A deploy changes asset names. Old HTML that references a file from the previous build can 404 for a moment during a deploy. A site crawler reported broken JavaScript on over a hundred pages right after a day of deploys, and that window is my best explanation. I now run a smoke script after every deploy that checks the page, its critical assets and the API health endpoint, and I keep a one-command rollback.
  2. Duplicate hosts. Plain http:// and the www host both answered 200, so a site audit saw every page two to four times. A small middleware now 308-redirects both to one https address.
  3. Scripts that run on a TV. An analytics script that was fine on a normal page broke the board's tests on slow loads. Load analytics late, and keep it off pages that stay open all day.

Letting other sites embed it

Drop zones asked to put the board on their own weather page, so board pages send Content-Security-Policy: frame-ancestors * and the For drop zones page has a copy-and-paste iframe. Say so explicitly in a header: a later security tweak won't silently break every embed.

What I'd tell myself at the start

Show the age of every reading, not just the reading. Test the empty and stale states as hard as the happy path. And write the smoke test before the first deploy, not after the first incident.

If you want to see it, the board for one drop zone is at jumpaloft.com/dz/curated/skydive-deland. It is a planning aid and does not replace a drop zone's own wind readings or briefings.

Top comments (0)