First, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
Open http://localhost:3000 with your browser to see the result.
Locate SearchExample.tsx
file, there are comments with instructions what to do.
The pages/api
directory is mapped to /api/*
. Files in this directory are treated as API routes instead of React pages.
- API routes - docs about API endpoints in Next.js
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.