Skip to content

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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