From 8f8666d0353af7e0162823bf7c00f259f5eb33b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Przemys=C5=82aw=20Grondek?= Date: Thu, 26 Oct 2023 17:54:25 +0200 Subject: [PATCH] Fix error API Routes cannot be used with "output: export" --- src/pages/api/hello.ts | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100644 src/pages/api/hello.ts diff --git a/src/pages/api/hello.ts b/src/pages/api/hello.ts deleted file mode 100644 index f8bcc7e..0000000 --- a/src/pages/api/hello.ts +++ /dev/null @@ -1,13 +0,0 @@ -// Next.js API route support: https://nextjs.org/docs/api-routes/introduction -import type { NextApiRequest, NextApiResponse } from 'next' - -type Data = { - name: string -} - -export default function handler( - req: NextApiRequest, - res: NextApiResponse -) { - res.status(200).json({ name: 'John Doe' }) -}