Next.js App Router API patterns — Route Handlers, Server Actions, middleware, validation, caching, error handling
92
90%
Does it follow best practices?
Impact
95%
1.58xAverage score across 5 eval scenarios
Passed
No known issues
Build a Next.js App Router page with a contact form. When submitted, the form should save the message to an in-memory store and show a success message.
Form fields:
The page should:
/contact/contact/messages (admin page)Produce:
app/contact/page.tsx -- the contact form pageapp/contact/messages/page.tsx -- page listing submitted messagespackage.json with dependenciesYou may create additional files as needed.