https://github.com/ethomson/helloworld-02
https://github.com/ethomson/helloworld-02
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/ethomson/helloworld-02
- Owner: ethomson
- Created: 2022-12-15T12:46:34.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-12-15T13:13:16.000Z (over 3 years ago)
- Last Synced: 2025-01-24T07:11:31.903Z (over 1 year ago)
- Language: CSS
- Size: 37.1 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
---
name: Edge API Route
slug: edge-api-route
description: Build your API using Vercel Edge Functions.
framework: Next.js
useCase: Edge Functions
css: None
deployUrl: https://vercel.com/new/clone?repository-url=https://github.com/vercel/examples/tree/main/edge-api-routes/hello-world&project-name=edge-api-route&repository-name=edge-api-route
demoUrl: https://edge-api-route.vercel.app/api/edge
---
# Edge API Route
Build your API using Vercel Edge Functions.
## Demo
https://edge-api-route.vercel.app/api/edge
## How to Use
You can choose from one of the following two methods to use this repository:
### One-Click Deploy
Deploy the example using [Vercel](https://vercel.com?utm_source=github&utm_medium=readme&utm_campaign=vercel-examples):
[](https://vercel.com/new/git/external?repository-url=https://github.com/vercel/examples/tree/main/edge-api-routes/hello-world&project-name=edge-api-route&repository-name=edge-api-route)
### Clone and Deploy
Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init) or [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) to bootstrap the example:
```bash
npx create-next-app --example https://github.com/vercel/examples/tree/main/edge-api-routes/hello-world edge-api-route
# or
yarn create next-app --example https://github.com/vercel/examples/tree/main/edge-api-routes/hello-world edge-api-route
```
Install the Vercel CLI:
```bash
npm i -g vercel
```
Then run the app at the root of the repository:
```bash
vercel dev
```