Files
accounted/app/api
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-05-26 22:29:41 +02:00
2026-06-10 13:52:24 +02:00
2026-06-16 10:42:37 +02:00
2026-06-18 11:49:33 +02:00
2026-04-11 17:06:32 +02:00
2026-06-05 17:26:40 +02:00
2026-05-06 11:12:02 +02:00
2026-04-11 17:06:32 +02:00
2026-06-10 13:52:24 +02:00
2026-06-18 11:49:33 +02:00
2026-05-08 15:42:06 +02:00
2026-04-29 16:32:26 +02:00
2026-06-16 10:42:37 +02:00