[Bug] Server action fail when triggered from not-found.tsx

Hello,

My server actions work correctly in local production builds but fail when deployed on Vercel. The issue occurs specifically when accessing the not-found.tsx page.

Here is my minimal repo to reproduce the bug: GitHub - adrienbailliard/vercel-server-action-issue.

Expected Behavior: the server action executes successfully, just like in local production mode.

Current Behavior: the server action fails on Vercel when triggered from not-found.tsx if page.tsx exists.