feat: add nextjs template

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
2024-04-05 21:42:09 +02:00
parent d6bbb91031
commit e19a57bbb7
33 changed files with 3261 additions and 2433 deletions

View File

@@ -0,0 +1,13 @@
// 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<Data>,
) {
res.status(200).json({ name: "John Doe" });
}