mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
* Cookies and Query parsing for API request * Adding JSON and SEND * First body parsing * Body parsing * Remove extra try catch * Fix tests * Only server bundling for API routes * Update packages/next-server/server/api-utils.ts Co-Authored-By: Tim Neutkens <[email protected]> * Revert on demand server changes * Use content-type for parsing * Update packages/next-server/server/api-utils.ts Co-Authored-By: Jan Potoms <[email protected]> * Add tests for server compilation * Add body limit * Change API to function chaining * Limit test
4 lines
84 B
JavaScript
4 lines
84 B
JavaScript
export default (req, res) => {
|
|
res.status(500).json({ error: 'Server error!' })
|
|
}
|