Issue with Next.js 14 Server Actions on Netlify: 404 Error on POST Request

This will be fixed when Next 14 support is released.

:point_right:t2: Hi folks,
a new major version (v5) of our Next.js Runtime is rolling out soon to all sites using Next.js 13.5+.

Starting today, you can already opt-in to use this version for your site, before the automatic rollout starts.

This version has full support for all Next.js functionality. We are constantly testing it using both the official suite of Next.js tests and our own end-to-end tests. Multiple past issues are resolved, including the one in this thread.

To opt-in:

  1. Please ensure you’re using Next.js 13.5+ (that includes 14.x ofc) and Node.js 18+ in your build settings.
  2. Opt-in from your Netlify site’s Deploys page. The new runtime should apply from the next deploy.

Thanks for the update, is there a way to opt in from a template? I would like to create a template which uses Next 14, and I cannot expect my users to opt in manually, is there a way to opt in from the toml file?

We will begin rolling out the new runtime version soon (planned for the coming few weeks), starting with the Starter plan and gradually going up the tier to Enterprise. Once that happens for the tier/s relevant to you, problem solved.
I would advise to test that opting-in works well for your template, to be ready.
Elad