fosstodon.org is one of the many independent Mastodon servers you can use to participate in the fediverse.
Fosstodon is an invite only Mastodon instance that is open to those who are interested in technology; particularly free & open source software. If you wish to join, contact us for an invite.

Administered by:

Server stats:

10K
active users

Revath S Kumar :javascript:

devs,

Since nextjs redirect can't be used inside `try/catch` block, How do you handle the redirections in server actions?

Especially when you don't want to handle `| undefined` in the return type of function in .

As of now I am doing redirection on client.

Is there a better way?