Next.js Discord

Discord Forum

Server actions forcing dynamic routes

Unanswered
Black Caiman posted this in #help-forum
Open in Discord
Black CaimanOP
Hi all!

Whenever I use a server action, the entire route becomes dynamic, even though the server action in triggered by user input. The server action is powering a simple search mechanism, if I swap the server action out for a more traditional fetch to a route segment but otherwise keep everything else the same, the route renderers statically again.

Is this just a limitation of the early alpha version of server actions?

Thanks in advance!

1 Reply

American Bobtail
For anyone else finding this issue in here, there is an open issue in github that can be followed for progress
https://github.com/vercel/next.js/issues/52840