Next.js Discord

Discord Forum

Do functions with server actions need to be under the /app folder?

Answered
Fieldfare posted this in #help-forum
Open in Discord
FieldfareOP
Can they be under another folder?
Answered by riský
iirc they just need to be used in a file inside app folder file... they can be defined anywhere (but try and see)
View full answer

3 Replies

iirc they just need to be used in a file inside app folder file... they can be defined anywhere (but try and see)
Answer
FieldfareOP
Thank you!