Closed jpwilliams closed 7 months ago
Latest commit: caf03164f7c093e0efd87f782f03efc18923615d
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
A user has added the prerelease/inngest label, so this PR will be published to npm with the tag pr-425
. 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-425
The last release was built and published from caf03164f7c093e0efd87f782f03efc18923615d.
@jpwilliams, a user tried this feature and experienced some issues. Linking the conversation..
Thanks, @IGassmann.
Closing this now. Superseded by #488.
Summary
Allows users to override the existing
isProduction
check performed by serve handlers, providing their own value (or dynamic value).It's specified on the
serve()
handler as they already need to be able to decide for themselves whether they're in production mode, as some pieces of the puzzle (like environment variables) are not available until the request enters the system.Therefore, this is the first part of allowing users to extend existing serve handlers to override pieces of functionality such as production checks, URL creation, or accessing environment variables.
Checklist
Related