rsnext/test/integration/legacy-pkg-gently/pages/api/hello.js
Joe Haddad 13cf664898
Add support for legacy server npm modules (#7898)
Notably, this PR fixes `faunadb` which relies on `formidable`.

n.b. `formidable` is an unmaintained legacy npm package that uses practices not compatible with the modern ecosystem.
2019-07-11 13:02:43 -04:00

7 lines
179 B
JavaScript

import { Client } from 'faunadb'
export default (_req, res) => {
const client = new Client({ secret: 'foobar' })
console.log(client)
res.send({ message: 'hello world' })
}