Skip to content

Commit

Permalink
docs: add fix for streaming when body is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
sommeeeer committed Jun 14, 2024
1 parent ea07a91 commit 23b95a9
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions docs/pages/config/simple_example.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,12 @@ Here you can find the most common `open-next.config.ts` file examples that you c
one day to another) [Thread
1](https://discord.com/channels/983865673656705025/1230482660913184800)
[Thread
2](https://discord.com/channels/983865673656705025/1249368592558985247)
<br /> <br /> If you have an issue with streaming send a message on [discord](https://sst.dev/discord)
2](https://discord.com/channels/983865673656705025/1249368592558985247) <br />{' '}
<br /> On some AWS accounts the response can hang if the body is empty. There
is a workaround for that on OpenNext 3.0.3+, setting environment variable
`OPEN_NEXT_FORCE_NON_EMPTY_RESPONSE` to `"true"`. This will ensure that the
stream body is not empty. <br /> <br />
If you have an issue with streaming send a message on [discord](https://sst.dev/discord)
and contact AWS support to let them know of the issue.
</Callout>

Expand Down Expand Up @@ -63,7 +67,8 @@ export default config;
cache. We interact with them using AWS sdk v3. This can contribute a lot to
the cold start. There is a built-in option to use
[aws4fetch](https://github.com/mhart/aws4fetch) instead of the AWS sdk that
can reduce cold start up to 300ms. Requires `OpenNext v3.0.3+`. Here is how you enable it:
can reduce cold start up to 300ms. Requires `OpenNext v3.0.3+`. Here is how
you enable it:
</Callout>

```ts
Expand Down

0 comments on commit 23b95a9

Please sign in to comment.