Skip to content

garysassano/sst-cloudflare-hono-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sst-cloudflare-hono-api

SST app that deploys a Hono API to Cloudflare.

Prerequisites

  • Cloudflare:
    • Must have set the CLOUDFLARE_API_TOKEN variable in your local environment.
  • pnpm:

Installation

pnpm install

Deployment

pnpx 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

pnpx sst remove

About

SST app that deploys a Hono API to Cloudflare

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published