From d5bdd3e2c76a08a69f8e020ec306f0cc53302aff Mon Sep 17 00:00:00 2001 From: Nils Pukropp Date: Fri, 6 Nov 2026 17:51:19 +0100 Subject: [PATCH] fix(website): spell plugin counts above ten in the hero PLUGINS grew to 13, past the end of the number-word list, so the count fell back to a number and toUpperCase failed during the static build. --- website/src/components/Hero.astro | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/website/src/components/Hero.astro b/website/src/components/Hero.astro index 816ae86..f8532b7 100644 --- a/website/src/components/Hero.astro +++ b/website/src/components/Hero.astro @@ -36,7 +36,13 @@ function wave(gain: (phase: number) => number): string { const dry = wave(() => 1); const knurled = wave(gainAt); -const count = ['zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine', 'ten'][PLUGINS.length] ?? PLUGINS.length; +const WORDS = [ + 'zero', 'one', 'two', 'three', 'four', 'five', 'six', 'seven', 'eight', 'nine', 'ten', + 'eleven', 'twelve', 'thirteen', 'fourteen', 'fifteen', 'sixteen', 'seventeen', 'eighteen', + 'nineteen', 'twenty', +]; +// Spelled out up to twenty, digits after that. +const count = WORDS[PLUGINS.length] ?? String(PLUGINS.length); ---