40c4876a19
redirect() throws NEXT_REDIRECT internally — inside catch it was swallowed and returned networkError. Extract cookie data in try/catch, then set cookie and redirect() after the block so the throw propagates correctly. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>