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
414 stars 41 forks source link

Only throw lack of event key errors when we know we're in production #357

Closed jpwilliams closed 11 months ago

jpwilliams commented 11 months ago

Summary

Ensures that the "Failed to send event" error--produced when an event key has not been set on a client--will only throw in production environments and not local development.

This logic needed to change slightly anyway after the removal of INNGEST_DEVSERVER_URL in v3.

Checklist

changeset-bot[bot] commented 11 months ago

🦋 Changeset detected

Latest commit: 5cff817b2037cacb4d3833059e731dcfd5e788f7

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

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

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