txchen / xbrowsersync-cfw

xBrowserSync API implementation using cloudflare worker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

xBrowserSync API implementation using Cloudflare worker and KV

This is a simple implementation of the xBrowserSync API using Cloudflare workder. It uses Cloudflare KV as storage.

Deployment

  • Create a Cloudflare worker project
  • Create a KV namespace, and add KV binding in the worker project, name it as XBSKV
  • Paste the content of index.js into worker, modify the settings and then save and deploy
  • Profit

Usage

Point your xBrowserSync plugin/app to your worker URL

About

xBrowserSync API implementation using cloudflare worker

License:MIT License


Languages

Language:JavaScript 100.0%