-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into release-please--branches--main--components--…
…hono-alibaba-cloud-fc3-adapter
- Loading branch information
Showing
3 changed files
with
47 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Hono Alibaba Cloud FC3 Adapter | ||
|
||
[![Build](https://github.com/rwv/hono-alibaba-cloud-fc3-adapter/actions/workflows/build.yml/badge.svg)](https://github.com/rwv/hono-alibaba-cloud-fc3-adapter/actions/workflows/build.yml) | ||
|
||
An adapter for using [Hono](https://hono.dev) with [Alibaba Cloud Function Compute 3.0](https://www.alibabacloud.com/help/en/functioncompute/fc-3-0). | ||
|
||
一个用于在[阿里云函数计算 FC 3.0](https://help.aliyun.com/zh/functioncompute/fc-3-0/) 中使用 [Hono](https://hono.dev) 的适配器。 | ||
|
||
## Installation | ||
|
||
```bash | ||
npm install hono-alibaba-cloud-fc3-adapter | ||
``` | ||
|
||
## Usage | ||
|
||
```typescript | ||
import { Hono } from "hono"; | ||
import { handle } from "hono-alibaba-cloud-fc3-adapter"; | ||
|
||
const app = new Hono(); | ||
|
||
app.get("/", (c) => c.text("Hello Hono!")); | ||
|
||
export const handler = handle(app); | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters