Skip to content

Commit 1d8a377

Browse files
authored
Merge pull request #45 from mohsen1/patch-1
docs: add missing "props" in README example
2 parents a50ed07 + 79f3403 commit 1d8a377

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,13 @@ Deploy [Next.js](https://nextjs.org/) apps on [AWS](https://aws.amazon.com/) wit
5050
## Basic Example CDK App
5151

5252
```ts
53-
import { App, Stack } from "aws-cdk-lib";
53+
import { App, Stack, StackProps } from "aws-cdk-lib";
5454
import { Construct } from "constructs";
5555
import { fileURLToPath } from "node:url";
5656
import { NextjsGlobalFunctions } from "cdk-nextjs";
5757

5858
class NextjsStack extends Stack {
59-
constructor(scope: Construct, id: string) {
59+
constructor(scope: Construct, id: string, props: StackProps = {}) {
6060
super(scope, id, props);
6161
new NextjsGlobalFunctions(this, "Nextjs", {
6262
healthCheckPath: "/api/health",

0 commit comments

Comments
 (0)