Files
accounted/lib
Jakob WennbergandClaude Opus 4.8 9278221616 fix(api): guard params await so static v1 routes don't 500 (#795)
Next.js 16 invokes a static route handler (no [segment]) with
{ params: undefined }. /api/v1/companies is the only authenticated static
route on the v1 surface, so awaiting params.params null-derefs and the catch
turns it into a 500 for every valid API key. Guard the await:
((await params?.params) ?? {}). Dynamic routes are unaffected. Fixes #781.

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-26 15:29:54 +02:00
..
2026-06-16 18:22:09 +02:00
2026-06-10 13:52:24 +02:00
2026-06-18 11:49:33 +02:00
2026-06-16 10:42:37 +02:00
2026-03-21 00:47:54 +01:00
2026-06-16 18:22:09 +02:00
2026-02-24 16:06:36 +01:00
2026-05-26 22:29:41 +02:00
2026-06-12 16:35:30 +02:00
2026-06-12 16:35:30 +02:00
2026-04-22 18:14:01 +02:00
2026-06-18 11:49:33 +02:00
2026-06-18 11:49:33 +02:00
2026-06-10 13:52:24 +02:00
2026-05-28 15:43:48 +02:00
2026-05-26 22:29:41 +02:00
2026-05-13 15:17:32 +02:00
2026-05-06 11:12:02 +02:00
2026-05-28 15:43:48 +02:00
2026-04-29 16:32:26 +02:00