Skip to content

Commit

Permalink
update hono to handle HEAD
Browse files Browse the repository at this point in the history
  • Loading branch information
xizeyoupan committed Sep 25, 2023
1 parent 2efa3d3 commit 8a8e92f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,6 @@ More info https://github.com/xizeyoupan/MetingJS

https://meting-dd.2333332.xyz/api => Deno Deploy

https://meting-ve.2333332.xyz/api => vercel

可自行测试,如 https://meting-dd.2333332.xyz/test

## 部署
Expand Down Expand Up @@ -133,6 +131,8 @@ docker run -d --name meting -p 3000:3000 intemd/meting-api:latest

比较出名,提供的域名被阻断,使用自有域名后速度尚可。冷启动速度一般。

**23年9月后vercel疑似升级了node版本,新部署应该会失败,建议用下面的deno部署。**

<a href="https://vercel.com/import/project?template=https://github.com/xizeyoupan/Meting-API"><img src="https://vercel.com/button" height="36"></a>

一直下一步即可。
Expand All @@ -141,12 +141,12 @@ docker run -d --name meting -p 3000:3000 intemd/meting-api:latest

类似Cloudflare Workers,但提供的域名未被阻断,使用Deno为runtime。

fork本项目后新建一个[project](https://dash.deno.com/projects),首先在设置中加一个Environment Variable,名称是OVERSEAS,值为1。接着link到你自己的项目,部署方式选action,project的name需要与你自己的yml吻合
fork本项目后新建一个[project](https://dash.deno.com/projects),首先在设置中加一个Environment Variable,名称是OVERSEAS,值为1。接着link到你自己的项目,部署方式选action,Deno Deploy 的 project 的 name 需要与你自己的yml中设置的吻合

```yml
uses: denoland/deployctl@v1
with:
project: meting #这里要改成你的project的name
project: meting #这里要改成你的Deno Deploy的project的name
entrypoint: deno.js
```
Expand Down
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"buffer": "^6.0.3",
"crypto-browserify": "^3.12.0",
"esbuild": "0.17.5",
"hono": "^2.7.5",
"hono": "^3.7.2",
"nanoid": "^4.0.0"
}
}

1 comment on commit 8a8e92f

@vercel
Copy link

@vercel vercel bot commented on 8a8e92f Sep 25, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.