-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
## Summary INN-1087 Adds the ability for the SDK to stream responses back to Inngest, enabling longer timeouts in edge runtimes such as Deno, Cloudflare, or Next.js. - **Add edge streaming support** > We're currently very strict about streaming support, only allowing it for `"inngest/next"`, ensuring users must opt in using `allowEdgeStreaming: true` and only allowing Next.js projects on Vercel. > > Following this being tested in production for a while, streaming support for other supported platforms is trivial to add, just writing code to turn it on. - **Add support for Next.js Edge Functions** > The `"inngest/next"` handler now supports both Serverless Functions and Edge Functions; users can switch between both using Next.js conventions without having to change any of our code or imports. - **Add support for Next.js 13+ [Route Handlers](https://beta.nextjs.org/docs/routing/route-handlers)** > Ended up wanting this as part of testing; if folks are using edge/streaming then it feels more likely that they're happy to use a beta version of Next.js itself too, so we might as well support this. > > Route handlers use the same `"inngest/next"` serve handler, but users must export differently: > ```ts > export default serve(...); > // to > export const { GET, POST, PUT } = serve(...); > ``` ## Related - inngest/inngest#429
- Loading branch information
1 parent
604e102
commit 65966f5
Showing
22 changed files
with
595 additions
and
123 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"inngest": minor | ||
--- | ||
|
||
INN-1087 Add edge streaming support to `"inngest/next"` serve handler |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.