Skip to content

Commit 68bd71a

Browse files
committed
simple example
1 parent 461efec commit 68bd71a

File tree

1 file changed

+6
-14
lines changed

1 file changed

+6
-14
lines changed

pages/aws/config/simple_example.mdx

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,7 @@ Here you can find the most common `open-next.config.ts` file examples that you c
44

55
## Streaming with lambda
66

7-
<Callout type="warning" emoji="⚠️">
8-
AWS has a bunch of different implementations of streaming in production. You
9-
might be lucky and have a fully working one, but you might have one that are
10-
not suitable for production. Be aware that there is nothing to do to prevent
11-
AWS from breaking your deployment (same code and same runtime might break from
12-
one day to another) [Thread
13-
1](https://discord.com/channels/983865673656705025/1230482660913184800)
14-
[Thread
15-
2](https://discord.com/channels/983865673656705025/1249368592558985247) <br />{' '}
16-
<br /> On some AWS accounts the response can hang if the body is empty. There
17-
is a workaround for that on OpenNext 3.0.3+, setting environment variable
18-
`OPEN_NEXT_FORCE_NON_EMPTY_RESPONSE` to `"true"`. This will ensure that the
19-
stream body is not empty. <br /> <br />
7+
<Callout type="info" emoji="ℹ️">
208
If you have an issue with streaming send a message on [discord](https://discord.com/channels/1283128968140161065/1286094576788177059)
219
and contact AWS support to let them know of the issue.
2210
</Callout>
@@ -34,6 +22,10 @@ const config = {
3422
export default config;
3523
```
3624

25+
Be aware that there has been some issues in the past with AWS breaking streaming from one day to another. This seems to be resolved now.
26+
[Thread 1](https://discord.com/channels/983865673656705025/1230482660913184800)
27+
[Thread 2](https://discord.com/channels/983865673656705025/1249368592558985247)
28+
3729
## Splitting the server
3830

3931
```ts
@@ -105,7 +97,7 @@ export default config;
10597
## Bundle for a classic Node server (With function splitting)
10698

10799
<Callout type="info" emoji="i">
108-
This is not implemented in sst yet. You'll have to use your own IAC construct to deploy this.
100+
This is not implemented in SST yet. You'll have to use your own IAC construct to deploy this.
109101

110102
Be aware that this uses the exact same system for ISR/SSG as the default lambda setup. So it will have to have all the proper permissions and env variable to interact with S3, DynamoDB and SQS (Or whatever you override it with). You can see [here](/aws/inner_workings/components/server/node#special-overrides) for more details
111103
</Callout>

0 commit comments

Comments
 (0)