Files
3e60c232a8 Relay Support in Rust Compiler (#33702)
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]>
2022-02-01 18:18:55 +00:00

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!',
},
})
}