PoC for Node.js using R2 for downloads
For more information, check out nodejs/build#3461.
- Install Node (>=18.12.1)
npm install -G wrangler
(latest recommended)- Log into your Cloudflare dash from Wrangler cli
- Create two R2 buckets on your account,
node-poc-dev
andnode-poc-prod
. They will need to either have a copy of Node's dist folder on them or have a recreation of it. npm install
npm start
to run the local worker. You will need to turn off local mode by hittingl
in order for it to work.
This PoC is licensed under the terms of the MIT License. It is based off of Kotx's render worker, which is also licensed under the MIT license.