Next.js Discord

Discord Forum

Vercel AI SDK in Server actions

Unanswered
Spectacled bear posted this in #help-forum
Open in Discord
Spectacled bearOP
Do you think this is okay and safe? or is it better to have a route handler for this? (like generateText)

3 Replies

I think its okay if you treat server actions as route handlers.
it isn't an escape hatch to ignore all basic security
Spectacled bearOP
Thank you!