Skip to content

Repository files navigation

sst-cloudflare-hono-api

SST app that deploys a Hono API to Cloudflare.

Architecture Diagram

Architecture Diagram

Prerequisites

  • Cloudflare:
    • Must have set the CLOUDFLARE_API_TOKEN variable in your local environment, with the Workers Scripts:Edit, Workers R2 Storage:Edit and Account Settings:Read permissions.
  • mise:

Installation

mise install
pnpm install

Deployment

pnpm sst deploy

Usage

  1. Grab the <WORKER_ROUTE_URL> from the deployment outputs:

    ✔  Complete
       url: <WORKER_ROUTE_URL>
  2. Upload the package.json to the R2 bucket using your Hono API endpoint:

    curl -H "Content-Type: application/json" -T "package.json" <WORKER_ROUTE_URL>
  3. Navigate to <WORKER_ROUTE_URL> to see the uploaded package.json file.

Cleanup

pnpm sst remove

About

SST app that deploys a Hono API to Cloudflare

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages