| name | Next.js Hello World Edge API Routes |
|---|---|
| slug | edge-hello-world-nextjs |
| description | A classic Hello World for the edge featuring Next.js. |
| framework | Next.js |
| useCase | Edge Functions |
| css | CSS Modules |
| deployUrl | https://vercel.com/new/clone?repository-url=https://github.com/vercel/examples/tree/main/functions/hello-world-next&project-name=edge-hello-world-nextjs&repository-name=edge-hello-world-nextjs |
| demoUrl | https://next-edge-api-route.vercel.app/api/edge - edge-hello-world - edge-query-parameters - edge-json-response |
A classic Hello World for the edge featuring Next.js.
https://next-edge-api-route.vercel.app/api/location
You can choose from one of the following two methods to use this repository:
Deploy the example using Vercel:
Execute create-next-app with pnpm to bootstrap the example:
pnpm create next-app --example https://github.com/vercel/examples/tree/main/edge-functions/hello-world-next edge-hello-world-nextjsNext, run Next.js in development mode:
pnpm devDeploy it to the cloud with Vercel (Documentation).