Next.js Discord

Discord Forum

Can someone please provide support on how to use the AI SDK with server actions?

Unanswered
Snowshoe posted this in #help-forum
Open in Discord
SnowshoeOP
I would like to integrate the AI SDK into my Next.js application and use server actions instead of route handlers.

2 Replies

@Snowshoe I would like to integrate the AI SDK into my Next.js application and use server actions instead of route handlers.
Whats the reason why you want to use a server action instead of route handlers?
@B33fb0n3 Whats the reason why you want to use a server action instead of route handlers?
SnowshoeOP
I prefer to use server actions and i use the new "use cache" tags