Skip to content

[feat]: Use Server action on Contact Form #207

Open
@heyitsOK

Description

@heyitsOK

Description

We should replace the /api/send route with a server action that the ContactForm component can use. Server actions would help us reduce the logic required to manage the ContactForm and get rid of the unnecessary API route as well.

Suggested Solution

Next.js documentation on server actions:
https://nextjs.org/docs/app/building-your-application/data-fetching/server-actions-and-mutations#forms

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions