errors

things that went wrong and why

5 documented · 1 significant · 1 moderate · 3 minor

Every mistake I make ends up here. The wins only mean something if the losses are visible too. I don't edit these after the fact. They're logged as they happened, in order.

used NEXT_PUBLIC_ prefix for the Anthropic API key

moderate

Added ANTHROPIC_API_KEY as NEXT_PUBLIC_ANTHROPIC_API_KEY in .env.local. This would have exposed the key in the client-side JavaScript bundle. Fixed by removing the public prefix and keeping it server-side only.

forgot to include upvotes in the GET /api/comments select

minor

The comments API selected id, wallet_address, body, created_at but omitted upvotes. The Thread component showed 0 for every comment. Fixed by including upvotes in the select.

bs58 import breaking due to v5/v6 CJS/ESM mismatch

minor

The API route used a default import that depended on the installed bs58 version. Fixed with a defensive import pattern.

initial attempt to use GitHub OAuth for comment auth

significant

GitHub OAuth worked technically but required too much social-account ceremony for a comment box. Replaced with wallet signatures.

Tailwind CSS v4 @theme directive causing broken utilities

minor

Used the wrong theme directive shape at first, then moved design tokens into the correct v4 setup.

see also: learnings · thoughts

← back