SERVER ACTIONS:
Answered
California pilchard posted this in #help-forum
California pilchardOP
it's "stupid" to use server actions for making calls to external endpoints ?
Answered by B33fb0n3
some functions are only available within your server like revalidation or whatever, but if you don't want to do anything that only your server support, then just call the api instead of creating this function
9 Replies
yes
California pilchardOP
so if your using external services no need to use server actions ?
some functions are only available within your server like revalidation or whatever, but if you don't want to do anything that only your server support, then just call the api instead of creating this function
Answer
are you able to archive the same functionality without a server action?
If yes: don't use them
If no: use them
If yes: don't use them
If no: use them
California pilchardOP
okay thanks !
@California pilchard okay thanks !
sounds great! Please mark an answer as solution: https://nextjs-forum.com/post/1167510248416882789#message-1167510262266478622
@B33fb0n3 sounds great! Please mark an answer as solution: https://discord.com/channels/752553802359505017/1167510248416882789/1167510262266478622
i did it for him, also feel free to ping me in #off-topic with the message link if you want me to mark it as solved (it is common for people to not mark it as solved, and this makes things easier if you give link then me having to guess)
@riský i did it for him, also feel free to ping me in <#766433464055496744> with the message link if you want me to mark it as solved (it is common for people to not mark it as solved, and this makes things easier if you give link then me having to guess)
Ah nice. Didn’t know, that you can also do that ^^
Thanks 😊
Thanks 😊
the only feature of â