Skip to content

Commit

Permalink
Vercel json
Browse files Browse the repository at this point in the history
  • Loading branch information
derin-art committed Dec 28, 2022
1 parent c0142da commit b660b8a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pages/api/customerChanges.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ const handler = nextConnect<NextApiRequest, NextApiResponse>({

const allowCors = (fn: any) => async (req: any, res: any) => {
if (req.method === "OPTIONS") {
res.status(200).end();
res.status(200).json({
body: "OK",
});
return;
}
res.setHeader("Access-Control-Allow-Credentials", true);
Expand Down

1 comment on commit b660b8a

@vercel
Copy link

@vercel vercel bot commented on b660b8a Dec 28, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

vert-crud-8d3s – ./

vert-crud-8d3s-git-main-derin-art.vercel.app
vert-crud-8d3s-derin-art.vercel.app
vert-crud-8d3s.vercel.app

Please sign in to comment.