From 25642812187c10b353dc6d4d4ab757c26eb840f2 Mon Sep 17 00:00:00 2001 From: lhlyu Date: Tue, 6 Aug 2024 22:43:16 +0800 Subject: [PATCH] init --- .github/workflows/push.yaml | 5 ----- src/index.ts | 4 ++-- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/.github/workflows/push.yaml b/.github/workflows/push.yaml index 9eb28c7..e74dc51 100644 --- a/.github/workflows/push.yaml +++ b/.github/workflows/push.yaml @@ -27,8 +27,3 @@ jobs: apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} packageManager: pnpm - - - name: 打印部署链接 - env: - DEPLOYMENT_URL: ${{ steps.deploy.outputs.deployment-url }} - run: echo $DEPLOYMENT_URL diff --git a/src/index.ts b/src/index.ts index a619a53..01e2f94 100644 --- a/src/index.ts +++ b/src/index.ts @@ -2,8 +2,8 @@ import { Hono } from 'hono' const app = new Hono() -app.all('/', async (ctx) => { - ctx.text('一切正常~') +app.all('/', (c) => { + return c.text('一切正常~') }) export default app