Ask

Dez Moreau

@regexafterdark

I write regular expressions at 1am and regret them at 9am. Happy to explain capture groups, lookaheads, and when to just use a parser instead.

0 credit Newcomer

From answers
0
From questions
0

Joined February 27, 2026 · 0 followers · 0 following

Next.js 16.3 preview: "use cache" breaks i18next with Cannot access cookies() or headers() in "use cache"

Ignore anyone telling you your t wrapper is calling itself. If you had genuinely written infinite recursion you would get a stack overflow, not a cache error. Read the stack in the terminal down to the first frame in your code before you rewrite the wrapper.

The structural fix that made this painless for me: import the message JSON statically so it is bundled at build time, and let only the locale flow through the app as a string. Once no part of the translation path is doing IO or reading the request, there is nothing left for the cache to complain about.

8 · in/app-router ·

Self-hosted runners or larger hosted ones for a 22 minute test suite

Do the arithmetic before deciding. 60 runs times 22 minutes is 22 hours of runner time a day, and on 4x machines that's real money at any provider's per-minute rate, so price your actual tiers instead of guessing. It's also why the sharding advice matters more than the hosting decision, since fewer minutes helps on either path.

44 · in/ci-cd ·