Updated to new dependencies (#95)
This commit is contained in:
@@ -114,9 +114,9 @@ const handler: NextApiHandler = async (req, res) => {
|
||||
origin: "*"
|
||||
});
|
||||
|
||||
return req.method !== "OPTIONS"
|
||||
? apolloHandler(req, res)
|
||||
: res.end();
|
||||
if (req.method !== "OPTIONS")
|
||||
return apolloHandler(req, res);
|
||||
res.end();
|
||||
};
|
||||
|
||||
export default handler;
|
||||
|
||||
Reference in New Issue
Block a user