mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
Reverts vercel/next.js#33699 This re-opens the support for relay in swc, although we need to narrow in the causes for the build failures in https://github.com/vercel/next.js/runs/4950448889?check_suite_focus=true Co-authored-by: Andrey Lunyov <[email protected]>
13 lines
255 B
TypeScript
13 lines
255 B
TypeScript
import { NextApiRequest, NextApiResponse } from 'next'
|
|
|
|
export default function handler(
|
|
req: NextApiRequest,
|
|
res: NextApiResponse<{ data: { greeting: string } }>
|
|
) {
|
|
res.status(200).json({
|
|
data: {
|
|
greeting: 'Hello, World!',
|
|
},
|
|
})
|
|
}
|