/reflare-cdn-template

Updated CDN Frontend using https://github.com/xiaoyang-sde/reflare-template (which is D3AD now)

Primary LanguageTypeScriptMIT LicenseMIT

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 wrangler

wrangler login

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

npm init cloudflare reflare-app https://github.com/rokibhasansagar/reflare-cdn-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.