https://static-to-worker.maple3142.workers.dev/
Publish your static webiste directly on CloudFlare workers for Free???
PS: This project is just a POC, and it only support html,js,css,json,xml files. So binary files such as png,jpeg won't be published.
Usage
Make sure you have wrangler installed
git clone https://github.com/maple3142/static-to-worker.gitcd static-to-workeryarnornpm icp wrangler.example.toml wrangler.tomlvim wrangler.tomland fill some fieldsnode index.js PATH_TO_STATIC_SITE_DIRECTORY > worker.js && wrangler publish
If you don't have a static site to test, there are
test/smallandtest/bigfor testing.
from https://github.com/maple3142/static-to-worker
No comments:
Post a Comment