This is aNext.jsproject bootstrapped withcreate-next-app
.
First, run the development server:
npm run dev
#or
yarn dev
Openhttp://localhost:3000with your browser to see the result.
You can start editing the page by modifyingpages/index.tsx
.The page auto-updates as you edit the file.
API routescan be accessed onhttp://localhost:3000/api/hello.This endpoint can be edited inpages/api/hello.ts
.
Thepages/api
directory is mapped to/api/*
.Files in this directory are treated asAPI routesinstead of React pages.
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation- learn about Next.js features and API.
- Learn Next.js- an interactive Next.js tutorial.
You can check outthe Next.js GitHub repository- your feedback and contributions are welcome!