Skip to content

ovflowd/node-with-r2-poc

 
 

Repository files navigation

node-with-r2-poc

PoC for Node.js using R2 for downloads

For more information, check out nodejs/build#3461.

Dev Setup

  • 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 and node-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 hitting l in order for it to work.

License

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 92.7%
  • Shell 6.0%
  • JavaScript 1.3%