ENV=local npm run dev:sample-worker
prod
feat is the fallback when ENV
is not passed so no need to pass it when deploying to prod...
npm run deploy:sample-worker
- Check sample-worker for a sample
- Create a new worker in the workers directory with Cargo.toml, package.json, src/lib.rs
- Add the worker cmd to the package.json
- Add the worker to the deploy-workers.yml