Skip to content

xortive/durable-objects-template

👷 worker-template Hello World

A template for kick starting a Cloudflare Workers project using durable objects, modules, rollup, and wrangler.

  • Worker code is in src/. The durable object class is in counter.mjs, and the eyeball script is in index.mjs. The eyeball script is also the main module, and since the runtime only looks at the main module for exported classes, it must re-export the counter class.
  • The compiled main module is set using the package.json "module" field. This should be set to the compiled bundle, in this case dist/index.mjs

About

No description, website, or topics provided.

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE_APACHE
MIT
LICENSE_MIT

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published