Ghost
New
pippinmole
/
ghost
public
forked from
ghost/ghost
Source code of Ghost - On Ghost
Star
0
Fork
0
Code
Issues
0
Pull requests
0
main
76
branches
Go to file
t
Code
ghost
apps
web
src
lib
action-client.ts
web: send server actions through the server API client, and define the action client once
a57e4b8
5 days ago
6 lines · 248 B
1
import
{
createSafeActionClient
}
from
"
next-safe-action
"
;
2
3
/**
Server actions report a thrown error's message to the form that called them.
*/
4
export
const
actionClient
=
5
handleServerError
:
(
error
)
6
}
)
;
createSafeActionClient
(
{
=>
error
.
message
,