inngest / inngest-js

The developer platform for easily building reliable workflows with zero infrastructure for TypeScript & JavaScript
https://www.inngest.com/
GNU General Public License v3.0
440 stars 43 forks source link

Allow specifying an `env` when sending events via the client #650

Closed jpwilliams closed 4 months ago

jpwilliams commented 4 months ago

Summary

Be able to specify an env to send a batch of events to, overwriting the env specified on the client already (which defaults to the env represented by the event key).

await inngest.send({
  name: "some.event",
}, {
  env: "my-other-env",
});

Checklist

Related

changeset-bot[bot] commented 4 months ago

🦋 Changeset detected

Latest commit: da33add097dd9c491c0fb5b9c4ed3f2cfc2a1824

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package | Name | Type | | ------- | ----- | | inngest | Minor |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

johnrazmus commented 4 months ago

Nice work! Ya'll are awesome.