Skip to content

Commit 19316e4

Browse files
authored
Nextjs streaming response (#230)
* nextjs example for lambda streaming response * link tmp dir to nextjs cache * update readme messages * update sam template description * update title typo * delete nextjs-streaming-respomse files * update Nextjs Response Streaming example readme. * move env AWS_LWA_INVOKE_MODE to lambda function
1 parent b2c446e commit 19316e4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Diff for: examples/nextjs-response-streaming/Dockerfile

-3
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@ COPY --from=public.ecr.aws/awsguru/aws-lambda-adapter:0.7.0 /lambda-adapter /opt
99

1010
ENV PORT=3000 NODE_ENV=production
1111

12-
ENV AWS_LWA_ENABLE_COMPRESSION=false
13-
ENV AWS_LWA_INVOKE_MODE=response_stream
14-
1512
WORKDIR ${LAMBDA_TASK_ROOT}
1613
COPY --from=builder /app/.next ./.next
1714
COPY --from=builder /app/public ./public

Diff for: examples/nextjs-response-streaming/template.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ Resources:
1313
PackageType: Image
1414
Architectures:
1515
- x86_64
16+
Environment:
17+
Variables:
18+
AWS_LWA_INVOKE_MODE: response_stream
1619
FunctionUrlConfig:
1720
AuthType: NONE
1821
InvokeMode: RESPONSE_STREAM

0 commit comments

Comments
 (0)