Skip to content

Commit 8916f2d

Browse files
authored
Fix nextjs examples (awslabs#350)
* Add SQS-Expressjs example * Fix HttpAPI routes for nextjs examples * Update README.md * Update README.md * Update template.yaml * Update template.yaml
1 parent bd8382a commit 8916f2d

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

examples/nextjs-zip/template.yaml

+9-1
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,16 @@ Resources:
2828
Layers:
2929
- !Sub arn:aws:lambda:${AWS::Region}:753240598075:layer:LambdaAdapterLayerX86:18
3030
Events:
31-
HttpEvent:
31+
RootEvent:
3232
Type: HttpApi
33+
Properties:
34+
Path: /
35+
Method: any
36+
ProxyEvent:
37+
Type: HttpApi
38+
Properties:
39+
Path: /{proxy+}
40+
Method: any
3341
Metadata:
3442
BuildMethod: makefile
3543

examples/nextjs/template.yaml

+9-1
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,16 @@ Resources:
1919
Architectures:
2020
- x86_64
2121
Events:
22-
HttpEvent:
22+
RootEvent:
2323
Type: HttpApi
24+
Properties:
25+
Path: /
26+
Method: any
27+
ProxyEvent:
28+
Type: HttpApi
29+
Properties:
30+
Path: /{proxy+}
31+
Method: any
2432
Metadata:
2533
DockerTag: v1
2634
DockerContext: ./app

0 commit comments

Comments
 (0)