Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 1.28 KB

README.md

File metadata and controls

27 lines (18 loc) · 1.28 KB

Header

🚀 The template to deploy Reflare to Cloudflare Workers. The src/index.ts file contains the route definitions of Reflare. The documentation of Reflare can be found here.

Deploy to Cloudflare Workers

Installation

Install wrangler CLI and authorize wrangler with Cloudflare account.

npm install -g @cloudflare/wrangler
wrangler login

Generate a new project from reflare-template and install the dependencies.

wrangler generate reflare-app https://github.com/xiaoyang-sde/reflare-template
cd reflare-app
npm install

Edit or add route definitions in src/index.ts. Please read the examples and route definition section below for more details.

  • Run npm run dev to preview Reflare with local development server provided by Miniflare.
  • Run npm run deploy to publish Reflare on Cloudflare Workers.