diff --git a/.github/workflows/api.deploy.yml b/.github/workflows/api.deploy.yml index b66ede4..3659b61 100644 --- a/.github/workflows/api.deploy.yml +++ b/.github/workflows/api.deploy.yml @@ -31,4 +31,4 @@ jobs: with: apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} - command: deploy --minify src/index.ts --name comuline-api + command: deploy -c wrangler.example.toml diff --git a/src/index.ts b/src/index.ts index 5f5dee9..944992b 100644 --- a/src/index.ts +++ b/src/index.ts @@ -51,8 +51,8 @@ const app = api }, }), ) - .get("/", (c) => c.redirect("/docs")) .get("/status", (c) => c.json({ status: "ok" })) + .get("/", (c) => c.redirect("/docs")) .notFound(() => { throw new HTTPException(404, { message: "Not found" }) }) diff --git a/wrangler.example.toml b/wrangler.example.toml index f227d3b..66b9504 100644 --- a/wrangler.example.toml +++ b/wrangler.example.toml @@ -4,7 +4,4 @@ main = "src/index.ts" minify = true [limits] -cpu_ms = 30000 - - - +cpu_ms = 30000 \ No newline at end of file