Next.js Discord

Discord Forum

SERVER ACTIONS:

Answered
California pilchard posted this in #help-forum
Open in Discord
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
View full answer

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
California pilchardOP
okay thanks !
@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)
the only feature of ⭐