Closed jpwilliams closed 3 months ago
Latest commit: 6fc91b91d9710552cd0f16c3fca8c5a60cc88a56
The changes in this PR will be included in the next version bump.
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
A user has added the prerelease/inngest label, so this PR will be published to npm with the tag pr-665
. It will be updated with the latest changes as you push commits to this PR.
You can install this prerelease version with:
npm install inngest@pr-665
The last release was built and published from 6fc91b91d9710552cd0f16c3fca8c5a60cc88a56.
Summary
On some platforms, environment variables are sent as a function argument and are not available as a global.
serve()
handlers manage this transparently as they can silently retrieve the values they are passed, butInngest
clients can require manual intervention.For these cases, we add
inngest.setEnvVars()
, allowing you to set environment variables at runtime and rest any URLs or configuration that was set during instantiation.Checklist
Related