Buckets:
32.9 GB
31,201 files
Updated 2 months ago
Ctrl+K
| Name | Size | Uploaded | Xet hash |
|---|---|---|---|
| interfaces | 1 items | ||
| pages | 4 items | ||
| .gitignore | 437 Bytes xet | f8bee8be | |
| README.md | 1.25 kB xet | adc15181 | |
| package.json | 385 Bytes xet | c2cf170c | |
| tsconfig.json | 511 Bytes xet | 1e6f111a |
API routes with REST
Next.js ships with API routes, which provide an easy solution to build your own API. This example shows how it can be used to create your REST API.
Deploy your own
How to use
Execute create-next-app with npm, Yarn, or pnpm to bootstrap the example:
npx create-next-app --example api-routes-rest api-routes-rest-app
yarn create next-app --example api-routes-rest api-routes-rest-app
pnpm create next-app --example api-routes-rest api-routes-rest-app
Deploy to Vercel
Deploy it to the cloud with Vercel (Documentation).
- Total size
- 32.9 GB
- Files
- 31,201
- Last updated
- Sep 26
- Pre-warmed CDN
- US EU US EU