cdk-nextjs 0.3.10 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.jsii +1316 -781
- package/API.md +1067 -532
- package/README.md +4 -5
- package/assets/lambdas/assets-deployment/assets-deployment.lambda/assets-deployment.Dockerfile +12 -8
- package/assets/lambdas/assets-deployment/assets-deployment.lambda/index.js +68 -57
- package/assets/lambdas/post-deploy/post-deploy.lambda/index.js +246 -0
- package/docs/breaking-changes.md +9 -0
- package/docs/notes.md +170 -20
- package/examples/README.md +2 -2
- package/lib/constants.d.ts +32 -0
- package/lib/constants.js +38 -0
- package/lib/generated-structs/OptionalCustomResourceProps.d.ts +104 -0
- package/lib/generated-structs/OptionalCustomResourceProps.js +3 -0
- package/lib/generated-structs/OptionalDockerImageAssetProps.d.ts +21 -0
- package/lib/generated-structs/OptionalDockerImageAssetProps.js +1 -1
- package/lib/generated-structs/OptionalNextjsAssetsDeploymentProps.d.ts +9 -3
- package/lib/generated-structs/OptionalNextjsAssetsDeploymentProps.js +1 -1
- package/lib/generated-structs/OptionalNextjsBuildProps.d.ts +1 -1
- package/lib/generated-structs/OptionalNextjsBuildProps.js +1 -1
- package/lib/generated-structs/OptionalNextjsContainersProps.d.ts +3 -3
- package/lib/generated-structs/OptionalNextjsContainersProps.js +1 -1
- package/lib/generated-structs/OptionalNextjsPostDeployProps.d.ts +42 -0
- package/lib/generated-structs/OptionalNextjsPostDeployProps.js +3 -0
- package/lib/generated-structs/OptionalPostDeployCustomResourceProperties.d.ts +41 -0
- package/lib/generated-structs/OptionalPostDeployCustomResourceProperties.js +4 -0
- package/lib/index.d.ts +6 -5
- package/lib/index.js +6 -8
- package/lib/lambdas/assets-deployment/assets-deployment.lambda.js +5 -23
- package/lib/lambdas/assets-deployment/fs-to-fs.js +18 -3
- package/lib/lambdas/assets-deployment/fs-to-s3.d.ts +8 -2
- package/lib/lambdas/assets-deployment/fs-to-s3.js +15 -9
- package/lib/lambdas/post-deploy/create-invalidation.d.ts +2 -0
- package/lib/lambdas/post-deploy/create-invalidation.js +19 -0
- package/lib/lambdas/post-deploy/post-deploy-function.d.ts +13 -0
- package/lib/lambdas/post-deploy/post-deploy-function.js +22 -0
- package/lib/lambdas/post-deploy/post-deploy.lambda.d.ts +9 -0
- package/lib/lambdas/post-deploy/post-deploy.lambda.js +56 -0
- package/lib/lambdas/post-deploy/prune-fs.d.ts +10 -0
- package/lib/lambdas/post-deploy/prune-fs.js +33 -0
- package/lib/lambdas/post-deploy/prune-s3.d.ts +15 -0
- package/lib/lambdas/post-deploy/prune-s3.js +101 -0
- package/lib/lambdas/utils.js +35 -0
- package/lib/nextjs-assets-deployment.d.ts +20 -51
- package/lib/nextjs-assets-deployment.js +32 -26
- package/lib/nextjs-build/builder.Dockerfile +12 -8
- package/lib/nextjs-build/cdk-nextjs-cache-handler.cjs +63 -0
- package/lib/nextjs-build/cdk-nextjs-cache-handler.d.ts +21 -0
- package/lib/nextjs-build/cdk-nextjs-cache-handler.js +49 -0
- package/lib/nextjs-build/global-containers.Dockerfile +29 -19
- package/lib/nextjs-build/global-functions.Dockerfile +30 -24
- package/lib/nextjs-build/nextjs-build.d.ts +51 -26
- package/lib/nextjs-build/nextjs-build.js +108 -88
- package/lib/nextjs-build/regional-containers.Dockerfile +30 -20
- package/lib/nextjs-compute/nextjs-compute-base-props.d.ts +0 -1
- package/lib/nextjs-compute/nextjs-compute-base-props.js +1 -1
- package/lib/nextjs-compute/nextjs-containers.d.ts +2 -1
- package/lib/nextjs-compute/nextjs-containers.js +7 -5
- package/lib/nextjs-compute/nextjs-functions.d.ts +1 -0
- package/lib/nextjs-compute/nextjs-functions.js +8 -11
- package/lib/nextjs-distribution.d.ts +1 -1
- package/lib/nextjs-distribution.js +5 -8
- package/lib/nextjs-file-system.js +1 -1
- package/lib/nextjs-post-deploy.d.ts +101 -0
- package/lib/nextjs-post-deploy.js +78 -0
- package/lib/nextjs-static-assets.js +1 -1
- package/lib/nextjs-vpc.d.ts +1 -1
- package/lib/nextjs-vpc.js +4 -4
- package/lib/root-constructs/nextjs-base-overrides.d.ts +4 -0
- package/lib/root-constructs/nextjs-base-overrides.js +1 -1
- package/lib/root-constructs/nextjs-base-props.d.ts +15 -7
- package/lib/root-constructs/nextjs-base-props.js +1 -1
- package/lib/root-constructs/nextjs-global-containers.d.ts +8 -8
- package/lib/root-constructs/nextjs-global-containers.js +26 -15
- package/lib/root-constructs/nextjs-global-functions.d.ts +8 -11
- package/lib/root-constructs/nextjs-global-functions.js +26 -25
- package/lib/root-constructs/nextjs-regional-containers.d.ts +8 -0
- package/lib/root-constructs/nextjs-regional-containers.js +26 -9
- package/lib/utils/get-architecture.d.ts +2 -0
- package/lib/utils/get-architecture.js +8 -0
- package/lib/utils/handle-deprecated-properties.d.ts +7 -0
- package/lib/utils/handle-deprecated-properties.js +14 -0
- package/package.json +17 -19
- package/assets/lambdas/revalidate/revalidate.lambda/index.js +0 -67
- package/lib/common.d.ts +0 -25
- package/lib/common.js +0 -30
- package/lib/generated-structs/OptionalNextjsInvalidationProps.d.ts +0 -11
- package/lib/generated-structs/OptionalNextjsInvalidationProps.js +0 -3
- package/lib/lambdas/assets-deployment/prune-s3.d.ts +0 -15
- package/lib/lambdas/assets-deployment/prune-s3.js +0 -42
- package/lib/lambdas/assets-deployment/s3.d.ts +0 -2
- package/lib/lambdas/assets-deployment/s3.js +0 -7
- package/lib/lambdas/assets-deployment/utils.js +0 -35
- package/lib/lambdas/revalidate/revalidate-function.d.ts +0 -13
- package/lib/lambdas/revalidate/revalidate-function.js +0 -22
- package/lib/lambdas/revalidate/revalidate.lambda.d.ts +0 -2
- package/lib/lambdas/revalidate/revalidate.lambda.js +0 -53
- package/lib/nextjs-build/add-cache-handler.d.ts +0 -1
- package/lib/nextjs-build/add-cache-handler.js +0 -23
- package/lib/nextjs-build/add-cache-handler.mjs +0 -18
- package/lib/nextjs-build/cache-handler.cjs +0 -21878
- package/lib/nextjs-build/cache-handler.d.ts +0 -6
- package/lib/nextjs-build/cache-handler.js +0 -26
- package/lib/nextjs-invalidation.d.ts +0 -19
- package/lib/nextjs-invalidation.js +0 -52
- package/lib/nextjs-revalidation.d.ts +0 -30
- package/lib/nextjs-revalidation.js +0 -65
- /package/lib/lambdas/{assets-deployment/utils.d.ts → utils.d.ts} +0 -0
package/.jsii
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
]
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"aws-cdk-lib": "^2.
|
|
10
|
+
"aws-cdk-lib": "^2.196.0",
|
|
11
11
|
"constructs": "^10.0.5"
|
|
12
12
|
},
|
|
13
13
|
"dependencyClosure": {
|
|
@@ -1240,6 +1240,19 @@
|
|
|
1240
1240
|
}
|
|
1241
1241
|
}
|
|
1242
1242
|
},
|
|
1243
|
+
"aws-cdk-lib.aws_dsql": {
|
|
1244
|
+
"targets": {
|
|
1245
|
+
"dotnet": {
|
|
1246
|
+
"package": "Amazon.CDK.AWS.DSQL"
|
|
1247
|
+
},
|
|
1248
|
+
"java": {
|
|
1249
|
+
"package": "software.amazon.awscdk.services.dsql"
|
|
1250
|
+
},
|
|
1251
|
+
"python": {
|
|
1252
|
+
"module": "aws_cdk.aws_dsql"
|
|
1253
|
+
}
|
|
1254
|
+
}
|
|
1255
|
+
},
|
|
1243
1256
|
"aws-cdk-lib.aws_dynamodb": {
|
|
1244
1257
|
"targets": {
|
|
1245
1258
|
"dotnet": {
|
|
@@ -3502,6 +3515,19 @@
|
|
|
3502
3515
|
}
|
|
3503
3516
|
}
|
|
3504
3517
|
},
|
|
3518
|
+
"aws-cdk-lib.aws_ssmguiconnect": {
|
|
3519
|
+
"targets": {
|
|
3520
|
+
"dotnet": {
|
|
3521
|
+
"package": "Amazon.CDK.AWS.SSMGuiConnect"
|
|
3522
|
+
},
|
|
3523
|
+
"java": {
|
|
3524
|
+
"package": "software.amazon.awscdk.services.ssmguiconnect"
|
|
3525
|
+
},
|
|
3526
|
+
"python": {
|
|
3527
|
+
"module": "aws_cdk.aws_ssmguiconnect"
|
|
3528
|
+
}
|
|
3529
|
+
}
|
|
3530
|
+
},
|
|
3505
3531
|
"aws-cdk-lib.aws_ssmincidents": {
|
|
3506
3532
|
"targets": {
|
|
3507
3533
|
"dotnet": {
|
|
@@ -3938,7 +3964,7 @@
|
|
|
3938
3964
|
"stability": "stable"
|
|
3939
3965
|
},
|
|
3940
3966
|
"homepage": "https://github.com/cdklabs/cdk-nextjs.git",
|
|
3941
|
-
"jsiiVersion": "5.
|
|
3967
|
+
"jsiiVersion": "5.8.9 (build 305c425)",
|
|
3942
3968
|
"keywords": [
|
|
3943
3969
|
"aws",
|
|
3944
3970
|
"aws-cdk",
|
|
@@ -3958,7 +3984,7 @@
|
|
|
3958
3984
|
},
|
|
3959
3985
|
"name": "cdk-nextjs",
|
|
3960
3986
|
"readme": {
|
|
3961
|
-
"markdown": "\n[](https://www.npmjs.org/package/cdk-nextjs)\n\n\n# CDK Next.js Construct Library\n\n<!--BEGIN STABILITY BANNER-->\n\n---\n\n\n\n> The APIs of higher level constructs in this module are experimental and under active development.\n> They are subject to non-backward compatible changes or removal in any future version. These are\n> not subject to the [Semantic Versioning](https://semver.org/) model and breaking changes will be\n> announced in the release notes. This means that while you may use them, you may need to update\n> your source code when upgrading to a newer version of this package.\n\n---\n\n<!--END STABILITY BANNER-->\n\nDeploy [Next.js](https://nextjs.org/) apps on [AWS](https://aws.amazon.com/) with the [AWS CDK](https://aws.amazon.com/cdk/).\n\n## Features\n\n- Supports all features of Next.js App and Pages Router for [Node.js Runtime](https://nextjs.org/docs/app/building-your-application/rendering/edge-and-nodejs-runtimes#nodejs-runtime)\n- Choose your AWS architecture for Next.js with the supported constructs: `NextjsGlobalFunctions`, `NextjsGlobalContainers`, `NextjsRegionalContainers`.\n- Global Content Delivery Network (CDN) built with [Amazon CloudFront](https://aws.amazon.com/cloudfront/) to deliver content with low latency and high transfer speeds.\n- Serverless functions powered by [AWS Lambda](https://aws.amazon.com/lambda/) or serverless containers powered by [AWS Fargate](https://aws.amazon.com/fargate/).\n- Static assets (JS, CSS, public folder) are stored and served from [Amazon Simple Storage Service (S3)](https://aws.amazon.com/s3/) for global constructs to decrease latency and reduce compute costs.\n- [Optimized images](https://nextjs.org/docs/pages/building-your-application/optimizing/images), [data cache](https://nextjs.org/docs/app/building-your-application/caching#data-cache), and [full route cache](https://nextjs.org/docs/app/building-your-application/caching#full-route-cache) are shared across compute with [Amazon Elastic File System (EFS)](https://aws.amazon.com/efs/).\n- Customize every construct via `overrides`.\n- WIP: When using AWS Lambda for compute, async revalidation is supported with [Amazon Simple Queue Service (SQS)](https://aws.amazon.com/sqs/).\n- AWS security and operational best practices are utilized, guided by [cdk-nag](https://github.com/cdklabs/cdk-nag).\n- First class support for [monorepos](https://monorepo.tools/).\n- [AWS GovCloud (US)](https://aws.amazon.com/govcloud-us) compatible (with `NextjsRegionalContainers`).\n\n## Getting Started\n\n1. If you don’t have a Next.js project yet, follow [these steps](https://nextjs.org/docs/getting-started) to create one.\n1. Install [Docker](https://www.docker.com/). We recommend [Rancher Desktop](https://rancherdesktop.io/) with dockerd (moby) container engine enabled.\n1. Install [Node.js](https://nodejs.org/en). We recommend the long term support (LTS) version.\n1. Set your [next.config.js](https://nextjs.org/docs/pages/api-reference/next-config-js) [output](https://nextjs.org/docs/pages/api-reference/next-config-js/output) key to `\"standalone\"`. Learn more here about [Standalone Output](https://nextjs.org/docs/pages/api-reference/next-config-js/output#automatically-copying-traced-files).\n1. Setup [AWS Cloud Development Kit](https://docs.aws.amazon.com/cdk/v2/guide/home.html) app.\n1. Install the construct package: `npm install cdk-nextjs`\n1. `cdk deploy`\n1. Visit URL printed in terminal (CloudFormation Output) to view your Next.js app!\n\n## Basic Example CDK App\n\n```ts\nimport { App, Stack, StackProps } from \"aws-cdk-lib\";\nimport { Construct } from \"constructs\";\nimport { fileURLToPath } from \"node:url\";\nimport { NextjsGlobalFunctions } from \"cdk-nextjs\";\n\nclass NextjsStack extends Stack {\n constructor(scope: Construct, id: string, props: StackProps = {}) {\n super(scope, id, props);\n new NextjsGlobalFunctions(this, \"Nextjs\", {\n healthCheckPath: \"/api/health\",\n buildContext: fileURLToPath(new URL(\"..\", import.meta.url)),\n });\n }\n}\n\nconst app = new App();\n\nnew NextjsStack(app, \"nextjs\");\n```\n\nSee [examples/](./examples/) for more usage examples.\n\n## Architecture\n\n### `NextjsGlobalFunctions`\n\nArchitecture includes [AWS Lambda](https://docs.aws.amazon.com/lambda/latest/dg/welcome.html) Functions to respond to dynamic requests and [CloudFront](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Introduction.html) Distribution to globally serve requests and distribute static assets. Use this construct when you have unpredictable traffic, can afford occasional latency (i.e. cold starts - [typically 1% of production traffic](https://aws.amazon.com/blogs/compute/operating-lambda-performance-optimization-part-1/)), and/or want the most granular pricing model. ([code](./src/root-constructs/nextjs-global-functions.ts#L81))\n\n\n\n### `NextjsGlobalContainers`\n\nArchitecture includes [ECS Fargate](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/AWS_Fargate.html) containers to respond to dynamic requests and [CloudFront](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Introduction.html) Distribution to globally serve requests and distribute static assets. Use this option when you have predictable traffic, need the lowest latency, and/or can afford a less granular pricing model. ([code](./src/root-constructs/nextjs-global-containers.ts#L76))\n\n\n\n### `NextjsRegionalContainers`\n\nArchitecture includes [ECS Fargate](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/AWS_Fargate.html) containers to respond to dynamic requests and [Application Load Balancer](https://aws.amazon.com/elasticloadbalancing/application-load-balancer/) to regionally serve requests. Use this options when you cannot use Amazon CloudFront (i.e. [AWS GovCloud](https://aws.amazon.com/govcloud-us/?whats-new.sort-by=item.additionalFields.postDateTime&whats-new.sort-order=desc)). ([code](./src/root-constructs/nextjs-regional-containers.ts#L41))\n\n\n\n## Why\n\nThe simplest path to deploy Next.js is on [Vercel](https://vercel.com/) - the Platform-as-a-Service company behind Next.js. However, deploying to Vercel can be expensive and some developers want all of their workloads running _directly_ on AWS. Developers can deploy Next.js on AWS through [AWS Amplify Hosting](https://docs.aws.amazon.com/amplify/latest/userguide/ssr-Amplifysupport.html), but Amplify does not support all Next.js features and manages AWS resources for you so they cannot be customized. If Amplify meets your requirements we recommend you use it, but if you want to use all Next.js features or want more visibility into the AWS resources then this construct is for you.\n\n## Design Principles\n\n- Treat Next.js as black box. Minimize reliance on Next.js internal APIs to reduce chance of incompatibility between this construct and future versions of Next.js.\n- Security first.\n- One architecture does not fit all.\n- Enable customization everywhere.\n\n## Limitations\n\n- If using `NextjsGlobalFunctions` or `NextjsGlobalContainers` (which use CloudFront), the number of top level files/directories cannot exceed 25, the max number of behaviors a CloudFront Distrubtion supports. We recommend you put all of your public assets into one top level directory (i.e. public/static) so you don't reach this limit. See [CloudFront Quotas](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html) for more information.\n- If using `NextjsGlobalFunctions`, when [revalidating data in Next.js](https://nextjs.org/docs/app/building-your-application/data-fetching/fetching-caching-and-revalidating#on-demand-revalidation) (i.e. [revalidatePath](https://nextjs.org/docs/app/api-reference/functions/revalidatePath)), the CloudFront Cache will still hold stale data. You'll need to use AWS SDK JS V3 [CreateInvalidationCommand](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cloudfront/Class/CreateInvalidationCommand/) to manually invalidate the path in CloudFront. See more [here](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Invalidation.html).\n- If using `NextjsGlobalFunctions`, setting an Authorization header won't work by default because of Lambda Function URL with IAM Auth is already using the Authorization header. You can use the `AWS_LWA_AUTHORIZATION_SOURCE` environment variable of [AWS Lambda Web Adapter](https://github.com/awslabs/aws-lambda-web-adapter) to set an alternative Authorization header in the client which will then be set to the Authorization header when it reaches your app.\n\n## Additional Security Recommendations\n\nThis construct by default implements all AWS security best practices that a CDK construct library reasonably can considering cost and complexity. Below are additional security practices we recommend you implement within your CDK app. Please see them below:\n\n- [VPC Flow Logs](https://docs.aws.amazon.com/vpc/latest/userguide/flow-logs.html). See [examples/](./examples) for sample implementation.\n- [Scan ECR Images For Vulnerabilities](https://docs.aws.amazon.com/AmazonECR/latest/userguide/image-scanning.html).\n- For `NextjsGlobalFunctions` and `NextjsGlobalContainers`, [CloudFront Access Logs](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/AccessLogs.html). See [examples/](./examples) for sample implementation.\n- For `NextjsGlobalContainers` and `NextjsRegionalContainers`, [ALB HTTPS Listener](https://docs.aws.amazon.com/elasticloadbalancing/latest/application/create-https-listener.html)\n- If using `NextjsGlobalContainers`, enable `ReadonlyRootFilesystem`. This will remove ability to use Static On-Demand feature of Next.js so it's not enabled by default, but is recommended for security.\n\n## Estimated Costs\n\nWIP\n\n## Contributing\n\nSteps to build locally:\n\n1. `git clone https://github.com/cdklabs/cdk-nextjs.git`\n2. `cd cdk-nextjs`\n3. `pnpm i && pnpm compile && pnpm build`\n\nThis project uses Projen, so make sure to not edit [Projen](https://projen.io/) created files and only edit .projenrc.ts.\n\n## FAQ\n\nQ: How does this compare to [cdk-nextjs-standalone](https://github.com/jetbridge/cdk-nextjs)?<br/>\nA: cdk-nextjs-standalone relies on [OpenNext](https://github.com/sst/open-next). OpenNext injects custom code to interact with private Next.js APIs. While OpenNext is able to make some optimizations that are great for serverless environments, this comes at an increase maintenance cost and increased chances for breaking changes. A goal of cdk-nextjs is to customize Next.js as little as possible to reduce the maintenance burden and decrease chances of breaking changes.\n\nQ: Why not offer API Gateway version of construct?<br/>\nA: API Gateway does not support streaming.\n\nQ: Why EFS instead of S3?<br/>\nA: Next.js has 3 types of server caching that are persisted to disk: [Data Cache](https://nextjs.org/docs/app/building-your-application/caching#data-cache), [Full Route Cache](https://nextjs.org/docs/app/building-your-application/caching#full-route-cache), and [Image Optimization](https://nextjs.org/docs/pages/building-your-application/optimizing/images). Cached data is persisted at .next/cache/fetch-cache, cached full routes are persisted at .next/server/app, and optimized images are persisted at .next/cache/images. Next.js provides a way to customize where cached data or cached full routes are persisted through the [Custom Next.js Cache Handler](https://nextjs.org/docs/app/api-reference/next-config-js/incrementalCacheHandlerPath), but there currently is no way to persist optimized images. Therefore, we need a way to persist cached data at the file system level which is transparent to Next.js. To do this, we use [Amazon Elastic File System (EFS)](https://aws.amazon.com/efs/). Benefits of EFS include being able to cache any Next.js data persisted to disk and therefore being flexible to adapt to Next.js as the framework evolves caching additional types of data. One exception to not using the Custom Next.js Cache Handler is to support [Data Cache Time-based Revalidation](https://nextjs.org/docs/app/building-your-application/caching#time-based-revalidation) when using AWS Lambda functions. Functions only run when they are responding to a request preventing time-based revalidation unlike containers with AWS Fargate which run continually. For functions, an [Amazon SQS Queue](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/welcome.html) and consuming function that will make a HEAD request with x-prerender-revalidate header needed for Next.js to update cache.\n\nQ: How customizable is the `cdk-nextjs` package for different use cases?<br/>\nA: The `cdk-nextjs` package offers deep customization through _prop-based_ overrides. These can be accessed in the construct props, allowing you to override settings like VPC configurations, CloudFront distribution, and ECS/Fargate setup. For example, you can modify `nextjsBuildProps` to customize the build process or use `nextjsDistributionProps` to adjust how CloudFront handles caching and routing. This level of control makes it easy to adapt the infrastructure to your application’s specific performance, networking, or deployment needs.\n\nQ: How can I use a custom domain with `cdk-nextjs`?<br/>\nA: See [low-cost example](./examples/low-cost/app.ts).\n\nQ: What is difference between `NextjsGlobalFunctionsProps.overrides.nextjsDistribution` and `NextjsGlobalFunctionsProps.overrides.nextjsGlobalFunctions.nextjsDistributionProps`<br/>\nA: `NextjsGlobalFunctionsProps.overrides.nextjsDistribution` allows you to customize any construct's props _within_ `NextjsDistribution` and is likely what you want whereas `NextjsGlobalFunctionsProps.overrides.nextjsGlobalFunctions.nextjsDistributionProps` allows you to customize the props passed into the construct: `NextjsDistribution`. This principle also applies to other similarly named overrides.\n\nQ: Why use container image for `NextjsGlobalFunctions`?<br />\nA: Read [The case for containers on Lambda (with benchmarks)](https://aaronstuyvenberg.com/posts/containers-on-lambda).\n\n## Acknowledgements\n\nThis construct was built on the shoulders of giants. Thank you to the contributors of [cdk-nextjs-standalone](https://github.com/jetbridge/cdk-nextjs) and [open-next](https://github.com/sst/open-next).\n\n## 🥂 Thanks Contributors\n\nThank you for helping other developers deploy Next.js apps on AWS\n\n<a href=\"https://github.com/cdklabs/cdk-nextjs/graphs/contributors\">\n <img src=\"https://contrib.rocks/image?repo=cdklabs/cdk-nextjs\" />\n</a>\n"
|
|
3987
|
+
"markdown": "\n[](https://www.npmjs.org/package/cdk-nextjs)\n\n\n# CDK Next.js Construct Library\n\n<!--BEGIN STABILITY BANNER-->\n\n---\n\n\n\n> The APIs of higher level constructs in this module are experimental and under active development.\n> They are subject to non-backward compatible changes or removal in any future version. These are\n> not subject to the [Semantic Versioning](https://semver.org/) model and breaking changes will be\n> announced in the release notes. This means that while you may use them, you may need to update\n> your source code when upgrading to a newer version of this package.\n\n---\n\n<!--END STABILITY BANNER-->\n\nDeploy [Next.js](https://nextjs.org/) apps on [AWS](https://aws.amazon.com/) with the [AWS CDK](https://aws.amazon.com/cdk/).\n\n## Features\n\n- Supports all features of Next.js App and Pages Router for [Node.js Runtime](https://nextjs.org/docs/app/building-your-application/rendering/edge-and-nodejs-runtimes#nodejs-runtime). One exception is `NextjsGlobalFunctions` does not currently support [ISR](https://nextjs.org/docs/app/guides/incremental-static-regeneration) - waiting for [Official Next.js Deployment Adapters API](https://github.com/vercel/next.js/discussions/77740).\n- Choose your AWS architecture for Next.js with the supported constructs: `NextjsGlobalFunctions`, `NextjsGlobalContainers`, `NextjsRegionalContainers`.\n- Global Content Delivery Network (CDN) built with [Amazon CloudFront](https://aws.amazon.com/cloudfront/) to deliver content with low latency and high transfer speeds.\n- Serverless functions powered by [AWS Lambda](https://aws.amazon.com/lambda/) or serverless containers powered by [AWS Fargate](https://aws.amazon.com/fargate/).\n- Static assets (JS, CSS, public folder) are stored and served from [Amazon Simple Storage Service (S3)](https://aws.amazon.com/s3/) for global constructs to decrease latency and reduce compute costs.\n- [Optimized images](https://nextjs.org/docs/pages/building-your-application/optimizing/images), [data cache](https://nextjs.org/docs/app/building-your-application/caching#data-cache), and [full route cache](https://nextjs.org/docs/app/building-your-application/caching#full-route-cache) are shared across compute with [Amazon Elastic File System (EFS)](https://aws.amazon.com/efs/).\n- Customize every construct via `overrides`.\n- AWS security and operational best practices are utilized, guided by [cdk-nag](https://github.com/cdklabs/cdk-nag).\n- First class support for [monorepos](https://monorepo.tools/).\n- [AWS GovCloud (US)](https://aws.amazon.com/govcloud-us) compatible (with `NextjsRegionalContainers`).\n\n## Getting Started\n\n1. If you don’t have a Next.js project yet, follow [these steps](https://nextjs.org/docs/getting-started) to create one.\n1. Install [Docker](https://www.docker.com/). We recommend [Rancher Desktop](https://rancherdesktop.io/) with dockerd (moby) container engine enabled.\n1. Install [Node.js](https://nodejs.org/en). We recommend the long term support (LTS) version.\n1. Set your [next.config.js](https://nextjs.org/docs/pages/api-reference/next-config-js) [output](https://nextjs.org/docs/pages/api-reference/next-config-js/output) key to `\"standalone\"`. Learn more here about [Standalone Output](https://nextjs.org/docs/pages/api-reference/next-config-js/output#automatically-copying-traced-files).\n1. Setup [AWS Cloud Development Kit](https://docs.aws.amazon.com/cdk/v2/guide/home.html) app.\n1. Install the construct package: `npm install cdk-nextjs`\n1. `cdk deploy`\n1. Visit URL printed in terminal (CloudFormation Output) to view your Next.js app!\n\n## Basic Example CDK App\n\n```ts\nimport { App, Stack, StackProps } from \"aws-cdk-lib\";\nimport { Construct } from \"constructs\";\nimport { NextjsGlobalFunctions } from \"cdk-nextjs\";\nimport { join } from \"node:path\";\n\nclass NextjsStack extends Stack {\n constructor(scope: Construct, id: string, props?: StackProps) {\n super(scope, id, props);\n new NextjsGlobalFunctions(this, \"Nextjs\", {\n healthCheckPath: \"/api/health\",\n buildContext: join(import.meta.dirname, \"..\"),\n });\n }\n}\n\nconst app = new App();\n\nnew NextjsStack(app, \"nextjs\");\n```\n\nSee [examples/](./examples/) for more usage examples.\n\n## Architecture\n\n### `NextjsGlobalFunctions`\n\nArchitecture includes [AWS Lambda](https://docs.aws.amazon.com/lambda/latest/dg/welcome.html) Functions to respond to dynamic requests and [CloudFront](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Introduction.html) Distribution to globally serve requests and distribute static assets. Use this construct when you have unpredictable traffic, can afford occasional latency (i.e. cold starts - [typically 1% of production traffic](https://aws.amazon.com/blogs/compute/operating-lambda-performance-optimization-part-1/)), and/or want the most granular pricing model. ([code](./src/root-constructs/nextjs-global-functions.ts#L81))\n\n\n\n### `NextjsGlobalContainers`\n\nArchitecture includes [ECS Fargate](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/AWS_Fargate.html) containers to respond to dynamic requests and [CloudFront](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Introduction.html) Distribution to globally serve requests and distribute static assets. Use this option when you have predictable traffic, need the lowest latency, and/or can afford a less granular pricing model. ([code](./src/root-constructs/nextjs-global-containers.ts#L76))\n\n\n\n### `NextjsRegionalContainers`\n\nArchitecture includes [ECS Fargate](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/AWS_Fargate.html) containers to respond to dynamic requests and [Application Load Balancer](https://aws.amazon.com/elasticloadbalancing/application-load-balancer/) to regionally serve requests. Use this options when you cannot use Amazon CloudFront (i.e. [AWS GovCloud](https://aws.amazon.com/govcloud-us/?whats-new.sort-by=item.additionalFields.postDateTime&whats-new.sort-order=desc)). ([code](./src/root-constructs/nextjs-regional-containers.ts#L41))\n\n\n\n## Why\n\nThe simplest path to deploy Next.js is on [Vercel](https://vercel.com/) - the Platform-as-a-Service company behind Next.js. However, deploying to Vercel can be expensive and some developers want all of their workloads running _directly_ on AWS. Developers can deploy Next.js on AWS through [AWS Amplify Hosting](https://docs.aws.amazon.com/amplify/latest/userguide/ssr-Amplifysupport.html), but Amplify does not support all Next.js features and manages AWS resources for you so they cannot be customized. If Amplify meets your requirements we recommend you use it, but if you want to use all Next.js features or want more visibility into the AWS resources then this construct is for you.\n\n## Design Principles\n\n- Treat Next.js as black box. Minimize reliance on Next.js internal APIs to reduce chance of incompatibility between this construct and future versions of Next.js.\n- Security first.\n- One architecture does not fit all.\n- Enable customization everywhere.\n\n## Limitations\n\n- If using `NextjsGlobalFunctions` or `NextjsGlobalContainers` (which use CloudFront), the number of top level files/directories cannot exceed 25, the max number of behaviors a CloudFront Distrubtion supports. We recommend you put all of your public assets into one top level directory (i.e. public/static) so you don't reach this limit. See [CloudFront Quotas](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/cloudfront-limits.html) for more information.\n- If using `NextjsGlobalFunctions`, when [revalidating data in Next.js](https://nextjs.org/docs/app/building-your-application/data-fetching/fetching-caching-and-revalidating#on-demand-revalidation) (i.e. [revalidatePath](https://nextjs.org/docs/app/api-reference/functions/revalidatePath)), the CloudFront Cache will still hold stale data. You'll need to use AWS SDK JS V3 [CreateInvalidationCommand](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-cloudfront/Class/CreateInvalidationCommand/) to manually invalidate the path in CloudFront. See more [here](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/Invalidation.html).\n- If using `NextjsGlobalFunctions`, setting an Authorization header won't work by default because of Lambda Function URL with IAM Auth is already using the Authorization header. You can use the `AWS_LWA_AUTHORIZATION_SOURCE` environment variable of [AWS Lambda Web Adapter](https://github.com/awslabs/aws-lambda-web-adapter) to set an alternative Authorization header in the client which will then be set to the Authorization header when it reaches your app.\n\n## Additional Security Recommendations\n\nThis construct by default implements all AWS security best practices that a CDK construct library reasonably can considering cost and complexity. Below are additional security practices we recommend you implement within your CDK app. Please see them below:\n\n- [VPC Flow Logs](https://docs.aws.amazon.com/vpc/latest/userguide/flow-logs.html). See [examples/](./examples) for sample implementation.\n- [Scan ECR Images For Vulnerabilities](https://docs.aws.amazon.com/AmazonECR/latest/userguide/image-scanning.html).\n- For `NextjsGlobalFunctions` and `NextjsGlobalContainers`, [CloudFront Access Logs](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/AccessLogs.html). See [examples/](./examples) for sample implementation.\n- For `NextjsGlobalContainers` and `NextjsRegionalContainers`, [ALB HTTPS Listener](https://docs.aws.amazon.com/elasticloadbalancing/latest/application/create-https-listener.html)\n- If using `NextjsGlobalContainers`, enable `ReadonlyRootFilesystem`. This will remove ability to use Static On-Demand feature of Next.js so it's not enabled by default, but is recommended for security.\n\n## Estimated Costs\n\nWIP\n\n## Contributing\n\nSteps to build locally:\n\n1. `git clone https://github.com/cdklabs/cdk-nextjs.git`\n2. `cd cdk-nextjs`\n3. `pnpm i && pnpm compile && pnpm build`\n\nThis project uses Projen, so make sure to not edit [Projen](https://projen.io/) created files and only edit .projenrc.ts.\n\n## FAQ\n\nQ: How does this compare to [cdk-nextjs-standalone](https://github.com/jetbridge/cdk-nextjs)?<br/>\nA: cdk-nextjs-standalone relies on [OpenNext](https://github.com/sst/open-next). OpenNext injects custom code to interact with private Next.js APIs. While OpenNext is able to make some optimizations that are great for serverless environments, this comes at an increase maintenance cost and increased chances for breaking changes. A goal of cdk-nextjs is to customize Next.js as little as possible to reduce the maintenance burden and decrease chances of breaking changes.\n\nQ: Why not offer API Gateway version of construct?<br/>\nA: API Gateway does not support streaming.\n\nQ: Why EFS instead of S3?<br/>\nA: Next.js has 3 types of server caching that are persisted to disk: [Data Cache](https://nextjs.org/docs/app/building-your-application/caching#data-cache), [Full Route Cache](https://nextjs.org/docs/app/building-your-application/caching#full-route-cache), and [Image Optimization](https://nextjs.org/docs/pages/building-your-application/optimizing/images). Cached data is persisted at .next/cache/fetch-cache, cached full routes are persisted at .next/server/app, and optimized images are persisted at .next/cache/images. Next.js provides a way to customize where cached data or cached full routes are persisted through the [Custom Next.js Cache Handler](https://nextjs.org/docs/app/api-reference/next-config-js/incrementalCacheHandlerPath), but there currently is no way to persist optimized images. Therefore, we need a way to persist cached data at the file system level which is transparent to Next.js. To do this, we use [Amazon Elastic File System (EFS)](https://aws.amazon.com/efs/). Benefits of EFS include being able to cache any Next.js data persisted to disk and therefore being flexible to adapt to Next.js as the framework evolves caching additional types of data. One exception to not using the Custom Next.js Cache Handler is to support [Data Cache Time-based Revalidation](https://nextjs.org/docs/app/building-your-application/caching#time-based-revalidation) when using AWS Lambda functions. Functions only run when they are responding to a request preventing time-based revalidation unlike containers with AWS Fargate which run continually. For functions, an [Amazon SQS Queue](https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/welcome.html) and consuming function that will make a HEAD request with x-prerender-revalidate header needed for Next.js to update cache.\n\nQ: How customizable is the `cdk-nextjs` package for different use cases?<br/>\nA: The `cdk-nextjs` package offers deep customization through _prop-based_ overrides. These can be accessed in the construct props, allowing you to override settings like VPC configurations, CloudFront distribution, and ECS/Fargate setup. For example, you can modify `nextjsBuildProps` to customize the build process or use `nextjsDistributionProps` to adjust how CloudFront handles caching and routing. This level of control makes it easy to adapt the infrastructure to your application’s specific performance, networking, or deployment needs.\n\nQ: How can I use a custom domain with `cdk-nextjs`?<br/>\nA: See [low-cost example](./examples/low-cost/app.ts).\n\nQ: What is difference between `NextjsGlobalFunctionsProps.overrides.nextjsDistribution` and `NextjsGlobalFunctionsProps.overrides.nextjsGlobalFunctions.nextjsDistributionProps`<br/>\nA: `NextjsGlobalFunctionsProps.overrides.nextjsDistribution` allows you to customize any construct's props _within_ `NextjsDistribution` and is likely what you want whereas `NextjsGlobalFunctionsProps.overrides.nextjsGlobalFunctions.nextjsDistributionProps` allows you to customize the props passed into the construct: `NextjsDistribution`. This principle also applies to other similarly named overrides.\n\nQ: Why use container image for `NextjsGlobalFunctions`?<br />\nA: Read [The case for containers on Lambda (with benchmarks)](https://aaronstuyvenberg.com/posts/containers-on-lambda).\n\n## Acknowledgements\n\nThis construct was built on the shoulders of giants. Thank you to the contributors of [cdk-nextjs-standalone](https://github.com/jetbridge/cdk-nextjs) and [open-next](https://github.com/sst/open-next).\n\n## 🥂 Thanks Contributors\n\nThank you for helping other developers deploy Next.js apps on AWS\n\n<a href=\"https://github.com/cdklabs/cdk-nextjs/graphs/contributors\">\n <img src=\"https://contrib.rocks/image?repo=cdklabs/cdk-nextjs\" />\n</a>\n"
|
|
3962
3988
|
},
|
|
3963
3989
|
"repository": {
|
|
3964
3990
|
"type": "git",
|
|
@@ -4029,7 +4055,7 @@
|
|
|
4029
4055
|
"kind": "interface",
|
|
4030
4056
|
"locationInModule": {
|
|
4031
4057
|
"filename": "src/root-constructs/nextjs-base-overrides.ts",
|
|
4032
|
-
"line":
|
|
4058
|
+
"line": 15
|
|
4033
4059
|
},
|
|
4034
4060
|
"name": "BaseNextjsConstructOverrides",
|
|
4035
4061
|
"properties": [
|
|
@@ -4041,7 +4067,7 @@
|
|
|
4041
4067
|
"immutable": true,
|
|
4042
4068
|
"locationInModule": {
|
|
4043
4069
|
"filename": "src/root-constructs/nextjs-base-overrides.ts",
|
|
4044
|
-
"line":
|
|
4070
|
+
"line": 19
|
|
4045
4071
|
},
|
|
4046
4072
|
"name": "nextjsAssetsDeploymentProps",
|
|
4047
4073
|
"optional": true,
|
|
@@ -4057,7 +4083,7 @@
|
|
|
4057
4083
|
"immutable": true,
|
|
4058
4084
|
"locationInModule": {
|
|
4059
4085
|
"filename": "src/root-constructs/nextjs-base-overrides.ts",
|
|
4060
|
-
"line":
|
|
4086
|
+
"line": 16
|
|
4061
4087
|
},
|
|
4062
4088
|
"name": "nextjsBuildProps",
|
|
4063
4089
|
"optional": true,
|
|
@@ -4073,7 +4099,7 @@
|
|
|
4073
4099
|
"immutable": true,
|
|
4074
4100
|
"locationInModule": {
|
|
4075
4101
|
"filename": "src/root-constructs/nextjs-base-overrides.ts",
|
|
4076
|
-
"line":
|
|
4102
|
+
"line": 18
|
|
4077
4103
|
},
|
|
4078
4104
|
"name": "nextjsFileSystemProps",
|
|
4079
4105
|
"optional": true,
|
|
@@ -4089,7 +4115,23 @@
|
|
|
4089
4115
|
"immutable": true,
|
|
4090
4116
|
"locationInModule": {
|
|
4091
4117
|
"filename": "src/root-constructs/nextjs-base-overrides.ts",
|
|
4092
|
-
"line":
|
|
4118
|
+
"line": 20
|
|
4119
|
+
},
|
|
4120
|
+
"name": "nextjsPostDeployProps",
|
|
4121
|
+
"optional": true,
|
|
4122
|
+
"type": {
|
|
4123
|
+
"fqn": "cdk-nextjs.OptionalNextjsPostDeployProps"
|
|
4124
|
+
}
|
|
4125
|
+
},
|
|
4126
|
+
{
|
|
4127
|
+
"abstract": true,
|
|
4128
|
+
"docs": {
|
|
4129
|
+
"stability": "stable"
|
|
4130
|
+
},
|
|
4131
|
+
"immutable": true,
|
|
4132
|
+
"locationInModule": {
|
|
4133
|
+
"filename": "src/root-constructs/nextjs-base-overrides.ts",
|
|
4134
|
+
"line": 17
|
|
4093
4135
|
},
|
|
4094
4136
|
"name": "nextjsVpcProps",
|
|
4095
4137
|
"optional": true,
|
|
@@ -4111,7 +4153,7 @@
|
|
|
4111
4153
|
"kind": "interface",
|
|
4112
4154
|
"locationInModule": {
|
|
4113
4155
|
"filename": "src/root-constructs/nextjs-base-overrides.ts",
|
|
4114
|
-
"line":
|
|
4156
|
+
"line": 26
|
|
4115
4157
|
},
|
|
4116
4158
|
"name": "BaseNextjsOverrides",
|
|
4117
4159
|
"properties": [
|
|
@@ -4123,7 +4165,7 @@
|
|
|
4123
4165
|
"immutable": true,
|
|
4124
4166
|
"locationInModule": {
|
|
4125
4167
|
"filename": "src/root-constructs/nextjs-base-overrides.ts",
|
|
4126
|
-
"line":
|
|
4168
|
+
"line": 30
|
|
4127
4169
|
},
|
|
4128
4170
|
"name": "nextjsAssetsDeployment",
|
|
4129
4171
|
"optional": true,
|
|
@@ -4139,7 +4181,7 @@
|
|
|
4139
4181
|
"immutable": true,
|
|
4140
4182
|
"locationInModule": {
|
|
4141
4183
|
"filename": "src/root-constructs/nextjs-base-overrides.ts",
|
|
4142
|
-
"line":
|
|
4184
|
+
"line": 27
|
|
4143
4185
|
},
|
|
4144
4186
|
"name": "nextjsBuild",
|
|
4145
4187
|
"optional": true,
|
|
@@ -4155,7 +4197,7 @@
|
|
|
4155
4197
|
"immutable": true,
|
|
4156
4198
|
"locationInModule": {
|
|
4157
4199
|
"filename": "src/root-constructs/nextjs-base-overrides.ts",
|
|
4158
|
-
"line":
|
|
4200
|
+
"line": 28
|
|
4159
4201
|
},
|
|
4160
4202
|
"name": "nextjsFileSystem",
|
|
4161
4203
|
"optional": true,
|
|
@@ -4171,7 +4213,23 @@
|
|
|
4171
4213
|
"immutable": true,
|
|
4172
4214
|
"locationInModule": {
|
|
4173
4215
|
"filename": "src/root-constructs/nextjs-base-overrides.ts",
|
|
4174
|
-
"line":
|
|
4216
|
+
"line": 31
|
|
4217
|
+
},
|
|
4218
|
+
"name": "nextjsPostDeploy",
|
|
4219
|
+
"optional": true,
|
|
4220
|
+
"type": {
|
|
4221
|
+
"fqn": "cdk-nextjs.NextjsPostDeployOverrides"
|
|
4222
|
+
}
|
|
4223
|
+
},
|
|
4224
|
+
{
|
|
4225
|
+
"abstract": true,
|
|
4226
|
+
"docs": {
|
|
4227
|
+
"stability": "stable"
|
|
4228
|
+
},
|
|
4229
|
+
"immutable": true,
|
|
4230
|
+
"locationInModule": {
|
|
4231
|
+
"filename": "src/root-constructs/nextjs-base-overrides.ts",
|
|
4232
|
+
"line": 29
|
|
4175
4233
|
},
|
|
4176
4234
|
"name": "nextjsVpc",
|
|
4177
4235
|
"optional": true,
|
|
@@ -4192,7 +4250,7 @@
|
|
|
4192
4250
|
"kind": "interface",
|
|
4193
4251
|
"locationInModule": {
|
|
4194
4252
|
"filename": "src/nextjs-build/nextjs-build.ts",
|
|
4195
|
-
"line":
|
|
4253
|
+
"line": 29
|
|
4196
4254
|
},
|
|
4197
4255
|
"name": "BuilderImageProps",
|
|
4198
4256
|
"properties": [
|
|
@@ -4205,7 +4263,7 @@
|
|
|
4205
4263
|
"immutable": true,
|
|
4206
4264
|
"locationInModule": {
|
|
4207
4265
|
"filename": "src/nextjs-build/nextjs-build.ts",
|
|
4208
|
-
"line":
|
|
4266
|
+
"line": 33
|
|
4209
4267
|
},
|
|
4210
4268
|
"name": "buildArgs",
|
|
4211
4269
|
"optional": true,
|
|
@@ -4227,7 +4285,7 @@
|
|
|
4227
4285
|
"immutable": true,
|
|
4228
4286
|
"locationInModule": {
|
|
4229
4287
|
"filename": "src/nextjs-build/nextjs-build.ts",
|
|
4230
|
-
"line":
|
|
4288
|
+
"line": 39
|
|
4231
4289
|
},
|
|
4232
4290
|
"name": "command",
|
|
4233
4291
|
"optional": true,
|
|
@@ -4235,35 +4293,18 @@
|
|
|
4235
4293
|
"primitive": "string"
|
|
4236
4294
|
}
|
|
4237
4295
|
},
|
|
4238
|
-
{
|
|
4239
|
-
"abstract": true,
|
|
4240
|
-
"docs": {
|
|
4241
|
-
"stability": "stable",
|
|
4242
|
-
"summary": "Path to your custom builder.Dockerfile which will be copied into {@link NextBaseProps.buildContext }. It is recommended to override this prop to optimize build caching for your setup."
|
|
4243
|
-
},
|
|
4244
|
-
"immutable": true,
|
|
4245
|
-
"locationInModule": {
|
|
4246
|
-
"filename": "src/nextjs-build/nextjs-build.ts",
|
|
4247
|
-
"line": 62
|
|
4248
|
-
},
|
|
4249
|
-
"name": "customDockerfilePath",
|
|
4250
|
-
"optional": true,
|
|
4251
|
-
"type": {
|
|
4252
|
-
"primitive": "string"
|
|
4253
|
-
}
|
|
4254
|
-
},
|
|
4255
4296
|
{
|
|
4256
4297
|
"abstract": true,
|
|
4257
4298
|
"docs": {
|
|
4258
4299
|
"example": "[\"MY_API_KEY\"]",
|
|
4259
|
-
"remarks": "Note, a shell script, cdk-nextjs-load-env-vars.sh is created within the\n{@link NextBaseProps.buildContext } directory, which will contain all the\nenvironment variables defined in this prop. If you've created your own\ncustom Dockerfile (passed in via {@link BuilderImageProps.customDockerfilePath})\nthen you need to make sure you're copying it into the image.",
|
|
4300
|
+
"remarks": "Note, a shell script, cdk-nextjs-load-env-vars.sh is created within the\n{@link NextBaseProps.buildContext } directory, which will contain all the\nenvironment variables defined in this prop. If you've created your own\ncustom Dockerfile (passed in via {@link BuilderImageProps.customDockerfilePath })\nthen you need to make sure you're copying it into the image.",
|
|
4260
4301
|
"stability": "stable",
|
|
4261
4302
|
"summary": "Environment variables names to pass from host to container during build process."
|
|
4262
4303
|
},
|
|
4263
4304
|
"immutable": true,
|
|
4264
4305
|
"locationInModule": {
|
|
4265
4306
|
"filename": "src/nextjs-build/nextjs-build.ts",
|
|
4266
|
-
"line":
|
|
4307
|
+
"line": 51
|
|
4267
4308
|
},
|
|
4268
4309
|
"name": "envVarNames",
|
|
4269
4310
|
"optional": true,
|
|
@@ -4286,7 +4327,7 @@
|
|
|
4286
4327
|
"immutable": true,
|
|
4287
4328
|
"locationInModule": {
|
|
4288
4329
|
"filename": "src/nextjs-build/nextjs-build.ts",
|
|
4289
|
-
"line":
|
|
4330
|
+
"line": 56
|
|
4290
4331
|
},
|
|
4291
4332
|
"name": "exclude",
|
|
4292
4333
|
"optional": true,
|
|
@@ -4303,13 +4344,14 @@
|
|
|
4303
4344
|
"abstract": true,
|
|
4304
4345
|
"docs": {
|
|
4305
4346
|
"default": "\"builder.Dockerfile\"",
|
|
4347
|
+
"remarks": "If specified, you are responsible\nfor ensuring it exists in build context before construct is instantiated.",
|
|
4306
4348
|
"stability": "stable",
|
|
4307
|
-
"summary": "Name of Dockerfile."
|
|
4349
|
+
"summary": "Name of Dockerfile in builder build context."
|
|
4308
4350
|
},
|
|
4309
4351
|
"immutable": true,
|
|
4310
4352
|
"locationInModule": {
|
|
4311
4353
|
"filename": "src/nextjs-build/nextjs-build.ts",
|
|
4312
|
-
"line":
|
|
4354
|
+
"line": 62
|
|
4313
4355
|
},
|
|
4314
4356
|
"name": "file",
|
|
4315
4357
|
"optional": true,
|
|
@@ -4325,7 +4367,7 @@
|
|
|
4325
4367
|
"immutable": true,
|
|
4326
4368
|
"locationInModule": {
|
|
4327
4369
|
"filename": "src/nextjs-build/nextjs-build.ts",
|
|
4328
|
-
"line":
|
|
4370
|
+
"line": 63
|
|
4329
4371
|
},
|
|
4330
4372
|
"name": "platform",
|
|
4331
4373
|
"optional": true,
|
|
@@ -4343,7 +4385,7 @@
|
|
|
4343
4385
|
"immutable": true,
|
|
4344
4386
|
"locationInModule": {
|
|
4345
4387
|
"filename": "src/nextjs-build/nextjs-build.ts",
|
|
4346
|
-
"line":
|
|
4388
|
+
"line": 68
|
|
4347
4389
|
},
|
|
4348
4390
|
"name": "skipBuild",
|
|
4349
4391
|
"optional": true,
|
|
@@ -4364,10 +4406,27 @@
|
|
|
4364
4406
|
"kind": "interface",
|
|
4365
4407
|
"locationInModule": {
|
|
4366
4408
|
"filename": "src/nextjs-assets-deployment.ts",
|
|
4367
|
-
"line":
|
|
4409
|
+
"line": 27
|
|
4368
4410
|
},
|
|
4369
4411
|
"name": "NextjsAssetDeploymentOverrides",
|
|
4370
4412
|
"properties": [
|
|
4413
|
+
{
|
|
4414
|
+
"abstract": true,
|
|
4415
|
+
"docs": {
|
|
4416
|
+
"stability": "stable",
|
|
4417
|
+
"summary": "Props that define the custom resource."
|
|
4418
|
+
},
|
|
4419
|
+
"immutable": true,
|
|
4420
|
+
"locationInModule": {
|
|
4421
|
+
"filename": "src/nextjs-assets-deployment.ts",
|
|
4422
|
+
"line": 31
|
|
4423
|
+
},
|
|
4424
|
+
"name": "customResourceProps",
|
|
4425
|
+
"optional": true,
|
|
4426
|
+
"type": {
|
|
4427
|
+
"fqn": "cdk-nextjs.OptionalCustomResourceProps"
|
|
4428
|
+
}
|
|
4429
|
+
},
|
|
4371
4430
|
{
|
|
4372
4431
|
"abstract": true,
|
|
4373
4432
|
"docs": {
|
|
@@ -4376,7 +4435,7 @@
|
|
|
4376
4435
|
"immutable": true,
|
|
4377
4436
|
"locationInModule": {
|
|
4378
4437
|
"filename": "src/nextjs-assets-deployment.ts",
|
|
4379
|
-
"line":
|
|
4438
|
+
"line": 34
|
|
4380
4439
|
},
|
|
4381
4440
|
"name": "dockerImageFunctionProps",
|
|
4382
4441
|
"optional": true,
|
|
@@ -4401,7 +4460,7 @@
|
|
|
4401
4460
|
},
|
|
4402
4461
|
"locationInModule": {
|
|
4403
4462
|
"filename": "src/nextjs-assets-deployment.ts",
|
|
4404
|
-
"line":
|
|
4463
|
+
"line": 110
|
|
4405
4464
|
},
|
|
4406
4465
|
"parameters": [
|
|
4407
4466
|
{
|
|
@@ -4427,7 +4486,7 @@
|
|
|
4427
4486
|
"kind": "class",
|
|
4428
4487
|
"locationInModule": {
|
|
4429
4488
|
"filename": "src/nextjs-assets-deployment.ts",
|
|
4430
|
-
"line":
|
|
4489
|
+
"line": 104
|
|
4431
4490
|
},
|
|
4432
4491
|
"name": "NextjsAssetsDeployment",
|
|
4433
4492
|
"properties": [
|
|
@@ -4437,7 +4496,7 @@
|
|
|
4437
4496
|
},
|
|
4438
4497
|
"locationInModule": {
|
|
4439
4498
|
"filename": "src/nextjs-assets-deployment.ts",
|
|
4440
|
-
"line":
|
|
4499
|
+
"line": 105
|
|
4441
4500
|
},
|
|
4442
4501
|
"name": "customResource",
|
|
4443
4502
|
"type": {
|
|
@@ -4450,26 +4509,12 @@
|
|
|
4450
4509
|
},
|
|
4451
4510
|
"locationInModule": {
|
|
4452
4511
|
"filename": "src/nextjs-assets-deployment.ts",
|
|
4453
|
-
"line":
|
|
4512
|
+
"line": 106
|
|
4454
4513
|
},
|
|
4455
4514
|
"name": "dockerImageFunction",
|
|
4456
4515
|
"type": {
|
|
4457
4516
|
"fqn": "aws-cdk-lib.aws_lambda.DockerImageFunction"
|
|
4458
4517
|
}
|
|
4459
|
-
},
|
|
4460
|
-
{
|
|
4461
|
-
"docs": {
|
|
4462
|
-
"stability": "stable",
|
|
4463
|
-
"summary": "Only used for `NextjsGlobalFunctions`."
|
|
4464
|
-
},
|
|
4465
|
-
"locationInModule": {
|
|
4466
|
-
"filename": "src/nextjs-assets-deployment.ts",
|
|
4467
|
-
"line": 132
|
|
4468
|
-
},
|
|
4469
|
-
"name": "previewModeId",
|
|
4470
|
-
"type": {
|
|
4471
|
-
"primitive": "string"
|
|
4472
|
-
}
|
|
4473
4518
|
}
|
|
4474
4519
|
],
|
|
4475
4520
|
"symbolId": "src/nextjs-assets-deployment:NextjsAssetsDeployment"
|
|
@@ -4484,7 +4529,7 @@
|
|
|
4484
4529
|
"kind": "interface",
|
|
4485
4530
|
"locationInModule": {
|
|
4486
4531
|
"filename": "src/nextjs-assets-deployment.ts",
|
|
4487
|
-
"line":
|
|
4532
|
+
"line": 37
|
|
4488
4533
|
},
|
|
4489
4534
|
"name": "NextjsAssetsDeploymentProps",
|
|
4490
4535
|
"properties": [
|
|
@@ -4496,7 +4541,7 @@
|
|
|
4496
4541
|
"immutable": true,
|
|
4497
4542
|
"locationInModule": {
|
|
4498
4543
|
"filename": "src/nextjs-assets-deployment.ts",
|
|
4499
|
-
"line":
|
|
4544
|
+
"line": 38
|
|
4500
4545
|
},
|
|
4501
4546
|
"name": "accessPoint",
|
|
4502
4547
|
"type": {
|
|
@@ -4506,15 +4551,14 @@
|
|
|
4506
4551
|
{
|
|
4507
4552
|
"abstract": true,
|
|
4508
4553
|
"docs": {
|
|
4509
|
-
"see": "{@link NextjsBuild.buildImageDigest }",
|
|
4510
4554
|
"stability": "stable"
|
|
4511
4555
|
},
|
|
4512
4556
|
"immutable": true,
|
|
4513
4557
|
"locationInModule": {
|
|
4514
4558
|
"filename": "src/nextjs-assets-deployment.ts",
|
|
4515
|
-
"line":
|
|
4559
|
+
"line": 44
|
|
4516
4560
|
},
|
|
4517
|
-
"name": "
|
|
4561
|
+
"name": "buildId",
|
|
4518
4562
|
"type": {
|
|
4519
4563
|
"primitive": "string"
|
|
4520
4564
|
}
|
|
@@ -4522,15 +4566,15 @@
|
|
|
4522
4566
|
{
|
|
4523
4567
|
"abstract": true,
|
|
4524
4568
|
"docs": {
|
|
4525
|
-
"see": "{@link NextjsBuild.
|
|
4569
|
+
"see": "{@link NextjsBuild.buildImageDigest }",
|
|
4526
4570
|
"stability": "stable"
|
|
4527
4571
|
},
|
|
4528
4572
|
"immutable": true,
|
|
4529
4573
|
"locationInModule": {
|
|
4530
4574
|
"filename": "src/nextjs-assets-deployment.ts",
|
|
4531
|
-
"line":
|
|
4575
|
+
"line": 48
|
|
4532
4576
|
},
|
|
4533
|
-
"name": "
|
|
4577
|
+
"name": "buildImageDigest",
|
|
4534
4578
|
"type": {
|
|
4535
4579
|
"primitive": "string"
|
|
4536
4580
|
}
|
|
@@ -4543,7 +4587,7 @@
|
|
|
4543
4587
|
"immutable": true,
|
|
4544
4588
|
"locationInModule": {
|
|
4545
4589
|
"filename": "src/nextjs-assets-deployment.ts",
|
|
4546
|
-
"line":
|
|
4590
|
+
"line": 54
|
|
4547
4591
|
},
|
|
4548
4592
|
"name": "dockerImageCode",
|
|
4549
4593
|
"type": {
|
|
@@ -4558,7 +4602,7 @@
|
|
|
4558
4602
|
"immutable": true,
|
|
4559
4603
|
"locationInModule": {
|
|
4560
4604
|
"filename": "src/nextjs-assets-deployment.ts",
|
|
4561
|
-
"line":
|
|
4605
|
+
"line": 55
|
|
4562
4606
|
},
|
|
4563
4607
|
"name": "nextjsType",
|
|
4564
4608
|
"type": {
|
|
@@ -4573,23 +4617,42 @@
|
|
|
4573
4617
|
"immutable": true,
|
|
4574
4618
|
"locationInModule": {
|
|
4575
4619
|
"filename": "src/nextjs-assets-deployment.ts",
|
|
4576
|
-
"line":
|
|
4620
|
+
"line": 65
|
|
4577
4621
|
},
|
|
4578
4622
|
"name": "vpc",
|
|
4579
4623
|
"type": {
|
|
4580
4624
|
"fqn": "aws-cdk-lib.aws_ec2.IVpc"
|
|
4581
4625
|
}
|
|
4582
4626
|
},
|
|
4627
|
+
{
|
|
4628
|
+
"abstract": true,
|
|
4629
|
+
"docs": {
|
|
4630
|
+
"example": "\"/my-base-path\"",
|
|
4631
|
+
"stability": "stable",
|
|
4632
|
+
"summary": "Prefix to the URI path the app will be served at."
|
|
4633
|
+
},
|
|
4634
|
+
"immutable": true,
|
|
4635
|
+
"locationInModule": {
|
|
4636
|
+
"filename": "src/nextjs-assets-deployment.ts",
|
|
4637
|
+
"line": 43
|
|
4638
|
+
},
|
|
4639
|
+
"name": "basePath",
|
|
4640
|
+
"optional": true,
|
|
4641
|
+
"type": {
|
|
4642
|
+
"primitive": "string"
|
|
4643
|
+
}
|
|
4644
|
+
},
|
|
4583
4645
|
{
|
|
4584
4646
|
"abstract": true,
|
|
4585
4647
|
"docs": {
|
|
4586
4648
|
"default": "true",
|
|
4587
|
-
"stability": "stable"
|
|
4649
|
+
"stability": "stable",
|
|
4650
|
+
"summary": "If true, logs details in custom resource lambda."
|
|
4588
4651
|
},
|
|
4589
4652
|
"immutable": true,
|
|
4590
4653
|
"locationInModule": {
|
|
4591
4654
|
"filename": "src/nextjs-assets-deployment.ts",
|
|
4592
|
-
"line":
|
|
4655
|
+
"line": 53
|
|
4593
4656
|
},
|
|
4594
4657
|
"name": "debug",
|
|
4595
4658
|
"optional": true,
|
|
@@ -4605,7 +4668,7 @@
|
|
|
4605
4668
|
"immutable": true,
|
|
4606
4669
|
"locationInModule": {
|
|
4607
4670
|
"filename": "src/nextjs-assets-deployment.ts",
|
|
4608
|
-
"line":
|
|
4671
|
+
"line": 56
|
|
4609
4672
|
},
|
|
4610
4673
|
"name": "overrides",
|
|
4611
4674
|
"optional": true,
|
|
@@ -4616,15 +4679,15 @@
|
|
|
4616
4679
|
{
|
|
4617
4680
|
"abstract": true,
|
|
4618
4681
|
"docs": {
|
|
4619
|
-
"see": "{@link NextjsBaseProps.
|
|
4682
|
+
"see": "{@link NextjsBaseProps.relativePathToPackage }",
|
|
4620
4683
|
"stability": "stable"
|
|
4621
4684
|
},
|
|
4622
4685
|
"immutable": true,
|
|
4623
4686
|
"locationInModule": {
|
|
4624
4687
|
"filename": "src/nextjs-assets-deployment.ts",
|
|
4625
|
-
"line":
|
|
4688
|
+
"line": 60
|
|
4626
4689
|
},
|
|
4627
|
-
"name": "
|
|
4690
|
+
"name": "relativePathToPackage",
|
|
4628
4691
|
"optional": true,
|
|
4629
4692
|
"type": {
|
|
4630
4693
|
"primitive": "string"
|
|
@@ -4639,7 +4702,7 @@
|
|
|
4639
4702
|
"immutable": true,
|
|
4640
4703
|
"locationInModule": {
|
|
4641
4704
|
"filename": "src/nextjs-assets-deployment.ts",
|
|
4642
|
-
"line":
|
|
4705
|
+
"line": 64
|
|
4643
4706
|
},
|
|
4644
4707
|
"name": "staticAssetsBucket",
|
|
4645
4708
|
"optional": true,
|
|
@@ -4667,14 +4730,15 @@
|
|
|
4667
4730
|
{
|
|
4668
4731
|
"abstract": true,
|
|
4669
4732
|
"docs": {
|
|
4670
|
-
"example": "
|
|
4733
|
+
"example": "join(import.meta.dirname, \"..\") (monorepo)",
|
|
4734
|
+
"remarks": "Note, by default cdk-nextjs' `builder.Dockerfile` is used to build your\nNext.js app. You can customize this by specifying `overrides.{nextjs...}.nextjsBuildProps.builderImageProps.file`.\nIf you override the default, then you are responsible for ensuring the\nDockerfile is in the build context directory before cdk-nextjs construct\nis instantiated.",
|
|
4671
4735
|
"stability": "stable",
|
|
4672
|
-
"summary": "[Build context](https://docs.docker.com/build/building/context/) for `docker build`. This directory should contain your lockfile (i.e. pnpm-lock.yaml) for your Next.js app. If you're not in a monorepo, then this will be the same directory as your Next.js app. If you are in a monorepo, then this value should be the root of your monorepo. You then must pass the relative path to your Next.js app via {@link NextjsBaseProps.
|
|
4736
|
+
"summary": "[Build context](https://docs.docker.com/build/building/context/) for `docker build`. This directory should contain your lockfile (i.e. pnpm-lock.yaml) for your Next.js app. If you're not in a monorepo, then this will be the same directory as your Next.js app. If you are in a monorepo, then this value should be the root of your monorepo. You then must pass the relative path to your Next.js app via {@link NextjsBaseProps.relativePathToPackage}."
|
|
4673
4737
|
},
|
|
4674
4738
|
"immutable": true,
|
|
4675
4739
|
"locationInModule": {
|
|
4676
4740
|
"filename": "src/root-constructs/nextjs-base-props.ts",
|
|
4677
|
-
"line":
|
|
4741
|
+
"line": 22
|
|
4678
4742
|
},
|
|
4679
4743
|
"name": "buildContext",
|
|
4680
4744
|
"type": {
|
|
@@ -4691,7 +4755,7 @@
|
|
|
4691
4755
|
"immutable": true,
|
|
4692
4756
|
"locationInModule": {
|
|
4693
4757
|
"filename": "src/root-constructs/nextjs-base-props.ts",
|
|
4694
|
-
"line":
|
|
4758
|
+
"line": 34
|
|
4695
4759
|
},
|
|
4696
4760
|
"name": "healthCheckPath",
|
|
4697
4761
|
"type": {
|
|
@@ -4720,14 +4784,31 @@
|
|
|
4720
4784
|
"abstract": true,
|
|
4721
4785
|
"docs": {
|
|
4722
4786
|
"example": "\"./packages/ui\"",
|
|
4723
|
-
"remarks": "This is the relative path from\n{@link NextjsBaseProps.buildContext} or root workspace to nested
|
|
4787
|
+
"remarks": "This is the relative path from\n{@link NextjsBaseProps.buildContext} or root workspace to nested package\ncontaining Next.js app. See example below:\n\nLet's say you have a monorepo with the following folder structure:\n- my-monorepo/\n - packages/\n - ui/\n - package.json (nested)\n - package.json (root)\n\nAnd your Next.js app directory is the ui folder. Then you would set {@link NextjsBaseProps.buildContext}\nto `\"/absolute/path/to/my-monorepo\"` and {@link NextjsBaseProps.relativePathToPackage}\nto `\"./packages/ui\"`.\n\nNote, setting {@link NextjsBaseProps.buildContext} to the root of your\nmonorepo will invalidate container runtime (i.e. docker) build cache when any file is\nchanged in your monorepo. This is slows down deployments. Checkout how you\ncan use [turbo](https://turbo.build/) in [Deploying with Docker Guide](https://turbo.build/repo/docs/handbook/deploying-with-docker)\nin the cdk-nextjs/examples/turbo.",
|
|
4724
4788
|
"stability": "stable",
|
|
4725
4789
|
"summary": "Use this if building in monorepo."
|
|
4726
4790
|
},
|
|
4727
4791
|
"immutable": true,
|
|
4728
4792
|
"locationInModule": {
|
|
4729
4793
|
"filename": "src/root-constructs/nextjs-base-props.ts",
|
|
4730
|
-
"line":
|
|
4794
|
+
"line": 59
|
|
4795
|
+
},
|
|
4796
|
+
"name": "relativePathToPackage",
|
|
4797
|
+
"optional": true,
|
|
4798
|
+
"type": {
|
|
4799
|
+
"primitive": "string"
|
|
4800
|
+
}
|
|
4801
|
+
},
|
|
4802
|
+
{
|
|
4803
|
+
"abstract": true,
|
|
4804
|
+
"docs": {
|
|
4805
|
+
"deprecated": "use relativePathToPackage",
|
|
4806
|
+
"stability": "deprecated"
|
|
4807
|
+
},
|
|
4808
|
+
"immutable": true,
|
|
4809
|
+
"locationInModule": {
|
|
4810
|
+
"filename": "src/root-constructs/nextjs-base-props.ts",
|
|
4811
|
+
"line": 63
|
|
4731
4812
|
},
|
|
4732
4813
|
"name": "relativePathToWorkspace",
|
|
4733
4814
|
"optional": true,
|
|
@@ -4755,7 +4836,7 @@
|
|
|
4755
4836
|
},
|
|
4756
4837
|
"locationInModule": {
|
|
4757
4838
|
"filename": "src/nextjs-build/nextjs-build.ts",
|
|
4758
|
-
"line":
|
|
4839
|
+
"line": 189
|
|
4759
4840
|
},
|
|
4760
4841
|
"parameters": [
|
|
4761
4842
|
{
|
|
@@ -4781,37 +4862,49 @@
|
|
|
4781
4862
|
"kind": "class",
|
|
4782
4863
|
"locationInModule": {
|
|
4783
4864
|
"filename": "src/nextjs-build/nextjs-build.ts",
|
|
4784
|
-
"line":
|
|
4865
|
+
"line": 137
|
|
4785
4866
|
},
|
|
4786
4867
|
"name": "NextjsBuild",
|
|
4787
4868
|
"properties": [
|
|
4788
4869
|
{
|
|
4789
4870
|
"docs": {
|
|
4790
|
-
"remarks": "Useful\nfor passing to properties of custom resources that depend upon the builder\nimage to re-run when build image changes.",
|
|
4791
4871
|
"stability": "stable",
|
|
4792
|
-
"summary": "
|
|
4872
|
+
"summary": "Image alias of builder image Next.js app which is built for other images to be built `FROM`. This image isn't built with CDK Assets construct b/c it doesn't need to be uploaded to ECR. We still need to include slice of `node.addr` in tag in case multiple cdk-nextjs constructs are used."
|
|
4793
4873
|
},
|
|
4794
4874
|
"locationInModule": {
|
|
4795
4875
|
"filename": "src/nextjs-build/nextjs-build.ts",
|
|
4796
|
-
"line":
|
|
4876
|
+
"line": 144
|
|
4797
4877
|
},
|
|
4798
|
-
"name": "
|
|
4878
|
+
"name": "builderImageAlias",
|
|
4879
|
+
"type": {
|
|
4880
|
+
"primitive": "string"
|
|
4881
|
+
}
|
|
4882
|
+
},
|
|
4883
|
+
{
|
|
4884
|
+
"docs": {
|
|
4885
|
+
"stability": "stable",
|
|
4886
|
+
"summary": "Unique id for Next.js build. Used to partition EFS FileSystem."
|
|
4887
|
+
},
|
|
4888
|
+
"locationInModule": {
|
|
4889
|
+
"filename": "src/nextjs-build/nextjs-build.ts",
|
|
4890
|
+
"line": 148
|
|
4891
|
+
},
|
|
4892
|
+
"name": "buildId",
|
|
4799
4893
|
"type": {
|
|
4800
4894
|
"primitive": "string"
|
|
4801
4895
|
}
|
|
4802
4896
|
},
|
|
4803
4897
|
{
|
|
4804
4898
|
"docs": {
|
|
4805
|
-
"remarks": "
|
|
4806
|
-
"see": "https://docs.aws.amazon.com/lambda/latest/api/API_FileSystemConfig.html",
|
|
4899
|
+
"remarks": "Useful\nfor passing to properties of custom resources that depend upon the builder\nimage to re-run when build image changes.",
|
|
4807
4900
|
"stability": "stable",
|
|
4808
|
-
"summary": "
|
|
4901
|
+
"summary": "Hash of builder image which will change whenever the image changes."
|
|
4809
4902
|
},
|
|
4810
4903
|
"locationInModule": {
|
|
4811
4904
|
"filename": "src/nextjs-build/nextjs-build.ts",
|
|
4812
|
-
"line":
|
|
4905
|
+
"line": 154
|
|
4813
4906
|
},
|
|
4814
|
-
"name": "
|
|
4907
|
+
"name": "buildImageDigest",
|
|
4815
4908
|
"type": {
|
|
4816
4909
|
"primitive": "string"
|
|
4817
4910
|
}
|
|
@@ -4823,7 +4916,7 @@
|
|
|
4823
4916
|
},
|
|
4824
4917
|
"locationInModule": {
|
|
4825
4918
|
"filename": "src/nextjs-build/nextjs-build.ts",
|
|
4826
|
-
"line":
|
|
4919
|
+
"line": 166
|
|
4827
4920
|
},
|
|
4828
4921
|
"name": "imageForNextjsAssetsDeployment",
|
|
4829
4922
|
"type": {
|
|
@@ -4839,7 +4932,7 @@
|
|
|
4839
4932
|
},
|
|
4840
4933
|
"locationInModule": {
|
|
4841
4934
|
"filename": "src/nextjs-build/nextjs-build.ts",
|
|
4842
|
-
"line":
|
|
4935
|
+
"line": 171
|
|
4843
4936
|
},
|
|
4844
4937
|
"name": "publicDirEntries",
|
|
4845
4938
|
"type": {
|
|
@@ -4859,7 +4952,7 @@
|
|
|
4859
4952
|
},
|
|
4860
4953
|
"locationInModule": {
|
|
4861
4954
|
"filename": "src/nextjs-build/nextjs-build.ts",
|
|
4862
|
-
"line":
|
|
4955
|
+
"line": 178
|
|
4863
4956
|
},
|
|
4864
4957
|
"name": "relativePathToEntrypoint",
|
|
4865
4958
|
"type": {
|
|
@@ -4873,7 +4966,7 @@
|
|
|
4873
4966
|
},
|
|
4874
4967
|
"locationInModule": {
|
|
4875
4968
|
"filename": "src/nextjs-build/nextjs-build.ts",
|
|
4876
|
-
"line":
|
|
4969
|
+
"line": 158
|
|
4877
4970
|
},
|
|
4878
4971
|
"name": "imageForNextjsContainers",
|
|
4879
4972
|
"optional": true,
|
|
@@ -4888,7 +4981,7 @@
|
|
|
4888
4981
|
},
|
|
4889
4982
|
"locationInModule": {
|
|
4890
4983
|
"filename": "src/nextjs-build/nextjs-build.ts",
|
|
4891
|
-
"line":
|
|
4984
|
+
"line": 162
|
|
4892
4985
|
},
|
|
4893
4986
|
"name": "imageForNextjsFunctions",
|
|
4894
4987
|
"optional": true,
|
|
@@ -4909,88 +5002,142 @@
|
|
|
4909
5002
|
"kind": "interface",
|
|
4910
5003
|
"locationInModule": {
|
|
4911
5004
|
"filename": "src/nextjs-build/nextjs-build.ts",
|
|
4912
|
-
"line":
|
|
5005
|
+
"line": 71
|
|
4913
5006
|
},
|
|
4914
5007
|
"name": "NextjsBuildOverrides",
|
|
4915
5008
|
"properties": [
|
|
4916
5009
|
{
|
|
4917
5010
|
"abstract": true,
|
|
4918
5011
|
"docs": {
|
|
4919
|
-
"
|
|
5012
|
+
"default": "\"cdk-nextjs/lib/nextjs-build\"",
|
|
5013
|
+
"stability": "stable",
|
|
5014
|
+
"summary": "Default folder for build context is the \"lib/nextjs-build\" folder in the installed cdk-nextjs library which has the \"assets-deployment.Dockerfile\". Note, if you specify this then you're responsible for ensuring the dockerfile is present in the build context directory and any referenced files are present as well. You can specify dockerfile name with adjacent `nextjsAssetDeploymentAssetImageCodeProps.file` property."
|
|
4920
5015
|
},
|
|
4921
5016
|
"immutable": true,
|
|
4922
5017
|
"locationInModule": {
|
|
4923
5018
|
"filename": "src/nextjs-build/nextjs-build.ts",
|
|
4924
|
-
"line":
|
|
5019
|
+
"line": 94
|
|
4925
5020
|
},
|
|
4926
|
-
"name": "
|
|
5021
|
+
"name": "assetsDeploymentImageBuildContext",
|
|
4927
5022
|
"optional": true,
|
|
4928
5023
|
"type": {
|
|
4929
|
-
"
|
|
5024
|
+
"primitive": "string"
|
|
4930
5025
|
}
|
|
4931
5026
|
},
|
|
4932
5027
|
{
|
|
4933
5028
|
"abstract": true,
|
|
4934
5029
|
"docs": {
|
|
4935
|
-
"
|
|
5030
|
+
"default": "\"cdk-nextjs/lib/nextjs-build\"",
|
|
5031
|
+
"stability": "stable",
|
|
5032
|
+
"summary": "Default folder for build context is the \"assets/lambdas/assets-deployment/assets-deployment.lambda\" folder in the installed cdk-nextjs library which has the \"{...}-containers.Dockerfile\". Note, if you specify this then you're responsible for ensuring the dockerfile is present in the build context directory and any referenced files are present as well. You can specify dockerfile name with adjacent `nextjsContainersDockerImageAssetProps.file` property."
|
|
4936
5033
|
},
|
|
4937
5034
|
"immutable": true,
|
|
4938
5035
|
"locationInModule": {
|
|
4939
5036
|
"filename": "src/nextjs-build/nextjs-build.ts",
|
|
4940
|
-
"line":
|
|
5037
|
+
"line": 104
|
|
4941
5038
|
},
|
|
4942
|
-
"name": "
|
|
5039
|
+
"name": "containersImageBuildContext",
|
|
4943
5040
|
"optional": true,
|
|
4944
5041
|
"type": {
|
|
4945
|
-
"
|
|
5042
|
+
"primitive": "string"
|
|
4946
5043
|
}
|
|
4947
5044
|
},
|
|
4948
5045
|
{
|
|
4949
5046
|
"abstract": true,
|
|
4950
5047
|
"docs": {
|
|
4951
|
-
"
|
|
5048
|
+
"default": "\"cdk-nextjs/lib/nextjs-build\"",
|
|
5049
|
+
"stability": "stable",
|
|
5050
|
+
"summary": "Default folder for build context is the \"lib/nextjs-build\" folder in the installed cdk-nextjs library which has the \"global-functions.Dockerfile\". Note, if you specify this then you're responsible for ensuring the dockerfile is present in the build context directory and any referenced files are present as well. You can specify dockerfile name with adjacent `nextjsFunctionsAssetImageCodeProps.file` property."
|
|
4952
5051
|
},
|
|
4953
5052
|
"immutable": true,
|
|
4954
5053
|
"locationInModule": {
|
|
4955
5054
|
"filename": "src/nextjs-build/nextjs-build.ts",
|
|
4956
|
-
"line":
|
|
5055
|
+
"line": 84
|
|
4957
5056
|
},
|
|
4958
|
-
"name": "
|
|
5057
|
+
"name": "functionsImageBuildContext",
|
|
4959
5058
|
"optional": true,
|
|
4960
5059
|
"type": {
|
|
4961
|
-
"
|
|
5060
|
+
"primitive": "string"
|
|
4962
5061
|
}
|
|
4963
|
-
}
|
|
4964
|
-
],
|
|
4965
|
-
"symbolId": "src/nextjs-build/nextjs-build:NextjsBuildOverrides"
|
|
4966
|
-
},
|
|
4967
|
-
"cdk-nextjs.NextjsBuildProps": {
|
|
4968
|
-
"assembly": "cdk-nextjs",
|
|
4969
|
-
"datatype": true,
|
|
4970
|
-
"docs": {
|
|
4971
|
-
"stability": "stable"
|
|
4972
|
-
},
|
|
4973
|
-
"fqn": "cdk-nextjs.NextjsBuildProps",
|
|
4974
|
-
"kind": "interface",
|
|
4975
|
-
"locationInModule": {
|
|
4976
|
-
"filename": "src/nextjs-build/nextjs-build.ts",
|
|
4977
|
-
"line": 71
|
|
4978
|
-
},
|
|
4979
|
-
"name": "NextjsBuildProps",
|
|
4980
|
-
"properties": [
|
|
5062
|
+
},
|
|
4981
5063
|
{
|
|
4982
5064
|
"abstract": true,
|
|
4983
5065
|
"docs": {
|
|
4984
|
-
"see": "{@link NextjsBaseProps [\"buildContext\"]}",
|
|
4985
5066
|
"stability": "stable"
|
|
4986
5067
|
},
|
|
4987
5068
|
"immutable": true,
|
|
4988
5069
|
"locationInModule": {
|
|
4989
5070
|
"filename": "src/nextjs-build/nextjs-build.ts",
|
|
4990
|
-
"line":
|
|
5071
|
+
"line": 74
|
|
4991
5072
|
},
|
|
4992
|
-
"name": "
|
|
4993
|
-
"
|
|
5073
|
+
"name": "nextjsAssetDeploymentAssetImageCodeProps",
|
|
5074
|
+
"optional": true,
|
|
5075
|
+
"type": {
|
|
5076
|
+
"fqn": "aws-cdk-lib.aws_lambda.AssetImageCodeProps"
|
|
5077
|
+
}
|
|
5078
|
+
},
|
|
5079
|
+
{
|
|
5080
|
+
"abstract": true,
|
|
5081
|
+
"docs": {
|
|
5082
|
+
"stability": "stable"
|
|
5083
|
+
},
|
|
5084
|
+
"immutable": true,
|
|
5085
|
+
"locationInModule": {
|
|
5086
|
+
"filename": "src/nextjs-build/nextjs-build.ts",
|
|
5087
|
+
"line": 72
|
|
5088
|
+
},
|
|
5089
|
+
"name": "nextjsContainersDockerImageAssetProps",
|
|
5090
|
+
"optional": true,
|
|
5091
|
+
"type": {
|
|
5092
|
+
"fqn": "cdk-nextjs.OptionalDockerImageAssetProps"
|
|
5093
|
+
}
|
|
5094
|
+
},
|
|
5095
|
+
{
|
|
5096
|
+
"abstract": true,
|
|
5097
|
+
"docs": {
|
|
5098
|
+
"stability": "stable"
|
|
5099
|
+
},
|
|
5100
|
+
"immutable": true,
|
|
5101
|
+
"locationInModule": {
|
|
5102
|
+
"filename": "src/nextjs-build/nextjs-build.ts",
|
|
5103
|
+
"line": 73
|
|
5104
|
+
},
|
|
5105
|
+
"name": "nextjsFunctionsAssetImageCodeProps",
|
|
5106
|
+
"optional": true,
|
|
5107
|
+
"type": {
|
|
5108
|
+
"fqn": "aws-cdk-lib.aws_lambda.AssetImageCodeProps"
|
|
5109
|
+
}
|
|
5110
|
+
}
|
|
5111
|
+
],
|
|
5112
|
+
"symbolId": "src/nextjs-build/nextjs-build:NextjsBuildOverrides"
|
|
5113
|
+
},
|
|
5114
|
+
"cdk-nextjs.NextjsBuildProps": {
|
|
5115
|
+
"assembly": "cdk-nextjs",
|
|
5116
|
+
"datatype": true,
|
|
5117
|
+
"docs": {
|
|
5118
|
+
"stability": "stable"
|
|
5119
|
+
},
|
|
5120
|
+
"fqn": "cdk-nextjs.NextjsBuildProps",
|
|
5121
|
+
"kind": "interface",
|
|
5122
|
+
"locationInModule": {
|
|
5123
|
+
"filename": "src/nextjs-build/nextjs-build.ts",
|
|
5124
|
+
"line": 107
|
|
5125
|
+
},
|
|
5126
|
+
"name": "NextjsBuildProps",
|
|
5127
|
+
"properties": [
|
|
5128
|
+
{
|
|
5129
|
+
"abstract": true,
|
|
5130
|
+
"docs": {
|
|
5131
|
+
"see": "{@link NextjsBaseProps [\"buildContext\"]}",
|
|
5132
|
+
"stability": "stable"
|
|
5133
|
+
},
|
|
5134
|
+
"immutable": true,
|
|
5135
|
+
"locationInModule": {
|
|
5136
|
+
"filename": "src/nextjs-build/nextjs-build.ts",
|
|
5137
|
+
"line": 115
|
|
5138
|
+
},
|
|
5139
|
+
"name": "buildContext",
|
|
5140
|
+
"type": {
|
|
4994
5141
|
"primitive": "string"
|
|
4995
5142
|
}
|
|
4996
5143
|
},
|
|
@@ -5002,7 +5149,7 @@
|
|
|
5002
5149
|
"immutable": true,
|
|
5003
5150
|
"locationInModule": {
|
|
5004
5151
|
"filename": "src/nextjs-build/nextjs-build.ts",
|
|
5005
|
-
"line":
|
|
5152
|
+
"line": 124
|
|
5006
5153
|
},
|
|
5007
5154
|
"name": "nextjsType",
|
|
5008
5155
|
"type": {
|
|
@@ -5018,7 +5165,7 @@
|
|
|
5018
5165
|
"immutable": true,
|
|
5019
5166
|
"locationInModule": {
|
|
5020
5167
|
"filename": "src/nextjs-build/nextjs-build.ts",
|
|
5021
|
-
"line":
|
|
5168
|
+
"line": 111
|
|
5022
5169
|
},
|
|
5023
5170
|
"name": "buildCommand",
|
|
5024
5171
|
"optional": true,
|
|
@@ -5034,7 +5181,7 @@
|
|
|
5034
5181
|
"immutable": true,
|
|
5035
5182
|
"locationInModule": {
|
|
5036
5183
|
"filename": "src/nextjs-build/nextjs-build.ts",
|
|
5037
|
-
"line":
|
|
5184
|
+
"line": 119
|
|
5038
5185
|
},
|
|
5039
5186
|
"name": "builderImageProps",
|
|
5040
5187
|
"optional": true,
|
|
@@ -5050,7 +5197,7 @@
|
|
|
5050
5197
|
"immutable": true,
|
|
5051
5198
|
"locationInModule": {
|
|
5052
5199
|
"filename": "src/nextjs-build/nextjs-build.ts",
|
|
5053
|
-
"line":
|
|
5200
|
+
"line": 125
|
|
5054
5201
|
},
|
|
5055
5202
|
"name": "overrides",
|
|
5056
5203
|
"optional": true,
|
|
@@ -5061,15 +5208,15 @@
|
|
|
5061
5208
|
{
|
|
5062
5209
|
"abstract": true,
|
|
5063
5210
|
"docs": {
|
|
5064
|
-
"see": "{@link NextjsBaseProps.
|
|
5211
|
+
"see": "{@link NextjsBaseProps.relativePathToPackage }",
|
|
5065
5212
|
"stability": "stable"
|
|
5066
5213
|
},
|
|
5067
5214
|
"immutable": true,
|
|
5068
5215
|
"locationInModule": {
|
|
5069
5216
|
"filename": "src/nextjs-build/nextjs-build.ts",
|
|
5070
|
-
"line":
|
|
5217
|
+
"line": 123
|
|
5071
5218
|
},
|
|
5072
|
-
"name": "
|
|
5219
|
+
"name": "relativePathToPackage",
|
|
5073
5220
|
"optional": true,
|
|
5074
5221
|
"type": {
|
|
5075
5222
|
"primitive": "string"
|
|
@@ -5117,21 +5264,6 @@
|
|
|
5117
5264
|
"filename": "src/nextjs-compute/nextjs-compute-base-props.ts",
|
|
5118
5265
|
"line": 6
|
|
5119
5266
|
},
|
|
5120
|
-
"name": "containerMountPathForEfs",
|
|
5121
|
-
"type": {
|
|
5122
|
-
"primitive": "string"
|
|
5123
|
-
}
|
|
5124
|
-
},
|
|
5125
|
-
{
|
|
5126
|
-
"abstract": true,
|
|
5127
|
-
"docs": {
|
|
5128
|
-
"stability": "stable"
|
|
5129
|
-
},
|
|
5130
|
-
"immutable": true,
|
|
5131
|
-
"locationInModule": {
|
|
5132
|
-
"filename": "src/nextjs-compute/nextjs-compute-base-props.ts",
|
|
5133
|
-
"line": 7
|
|
5134
|
-
},
|
|
5135
5267
|
"name": "healthCheckPath",
|
|
5136
5268
|
"type": {
|
|
5137
5269
|
"primitive": "string"
|
|
@@ -5145,7 +5277,7 @@
|
|
|
5145
5277
|
"immutable": true,
|
|
5146
5278
|
"locationInModule": {
|
|
5147
5279
|
"filename": "src/nextjs-compute/nextjs-compute-base-props.ts",
|
|
5148
|
-
"line":
|
|
5280
|
+
"line": 7
|
|
5149
5281
|
},
|
|
5150
5282
|
"name": "vpc",
|
|
5151
5283
|
"type": {
|
|
@@ -5169,7 +5301,7 @@
|
|
|
5169
5301
|
},
|
|
5170
5302
|
"locationInModule": {
|
|
5171
5303
|
"filename": "src/nextjs-compute/nextjs-containers.ts",
|
|
5172
|
-
"line":
|
|
5304
|
+
"line": 56
|
|
5173
5305
|
},
|
|
5174
5306
|
"parameters": [
|
|
5175
5307
|
{
|
|
@@ -5195,7 +5327,7 @@
|
|
|
5195
5327
|
"kind": "class",
|
|
5196
5328
|
"locationInModule": {
|
|
5197
5329
|
"filename": "src/nextjs-compute/nextjs-containers.ts",
|
|
5198
|
-
"line":
|
|
5330
|
+
"line": 49
|
|
5199
5331
|
},
|
|
5200
5332
|
"name": "NextjsContainers",
|
|
5201
5333
|
"properties": [
|
|
@@ -5205,7 +5337,7 @@
|
|
|
5205
5337
|
},
|
|
5206
5338
|
"locationInModule": {
|
|
5207
5339
|
"filename": "src/nextjs-compute/nextjs-containers.ts",
|
|
5208
|
-
"line":
|
|
5340
|
+
"line": 50
|
|
5209
5341
|
},
|
|
5210
5342
|
"name": "albFargateService",
|
|
5211
5343
|
"type": {
|
|
@@ -5218,7 +5350,7 @@
|
|
|
5218
5350
|
},
|
|
5219
5351
|
"locationInModule": {
|
|
5220
5352
|
"filename": "src/nextjs-compute/nextjs-containers.ts",
|
|
5221
|
-
"line":
|
|
5353
|
+
"line": 51
|
|
5222
5354
|
},
|
|
5223
5355
|
"name": "ecsCluster",
|
|
5224
5356
|
"type": {
|
|
@@ -5231,7 +5363,7 @@
|
|
|
5231
5363
|
},
|
|
5232
5364
|
"locationInModule": {
|
|
5233
5365
|
"filename": "src/nextjs-compute/nextjs-containers.ts",
|
|
5234
|
-
"line":
|
|
5366
|
+
"line": 52
|
|
5235
5367
|
},
|
|
5236
5368
|
"name": "url",
|
|
5237
5369
|
"type": {
|
|
@@ -5251,7 +5383,7 @@
|
|
|
5251
5383
|
"kind": "interface",
|
|
5252
5384
|
"locationInModule": {
|
|
5253
5385
|
"filename": "src/nextjs-compute/nextjs-containers.ts",
|
|
5254
|
-
"line":
|
|
5386
|
+
"line": 30
|
|
5255
5387
|
},
|
|
5256
5388
|
"name": "NextjsContainersOverrides",
|
|
5257
5389
|
"properties": [
|
|
@@ -5263,7 +5395,7 @@
|
|
|
5263
5395
|
"immutable": true,
|
|
5264
5396
|
"locationInModule": {
|
|
5265
5397
|
"filename": "src/nextjs-compute/nextjs-containers.ts",
|
|
5266
|
-
"line":
|
|
5398
|
+
"line": 32
|
|
5267
5399
|
},
|
|
5268
5400
|
"name": "albFargateServiceProps",
|
|
5269
5401
|
"optional": true,
|
|
@@ -5279,7 +5411,7 @@
|
|
|
5279
5411
|
"immutable": true,
|
|
5280
5412
|
"locationInModule": {
|
|
5281
5413
|
"filename": "src/nextjs-compute/nextjs-containers.ts",
|
|
5282
|
-
"line":
|
|
5414
|
+
"line": 31
|
|
5283
5415
|
},
|
|
5284
5416
|
"name": "ecsClusterProps",
|
|
5285
5417
|
"optional": true,
|
|
@@ -5295,7 +5427,7 @@
|
|
|
5295
5427
|
"immutable": true,
|
|
5296
5428
|
"locationInModule": {
|
|
5297
5429
|
"filename": "src/nextjs-compute/nextjs-containers.ts",
|
|
5298
|
-
"line":
|
|
5430
|
+
"line": 33
|
|
5299
5431
|
},
|
|
5300
5432
|
"name": "taskImageOptions",
|
|
5301
5433
|
"optional": true,
|
|
@@ -5319,7 +5451,7 @@
|
|
|
5319
5451
|
"kind": "interface",
|
|
5320
5452
|
"locationInModule": {
|
|
5321
5453
|
"filename": "src/nextjs-compute/nextjs-containers.ts",
|
|
5322
|
-
"line":
|
|
5454
|
+
"line": 36
|
|
5323
5455
|
},
|
|
5324
5456
|
"name": "NextjsContainersProps",
|
|
5325
5457
|
"properties": [
|
|
@@ -5331,7 +5463,22 @@
|
|
|
5331
5463
|
"immutable": true,
|
|
5332
5464
|
"locationInModule": {
|
|
5333
5465
|
"filename": "src/nextjs-compute/nextjs-containers.ts",
|
|
5334
|
-
"line":
|
|
5466
|
+
"line": 42
|
|
5467
|
+
},
|
|
5468
|
+
"name": "buildId",
|
|
5469
|
+
"type": {
|
|
5470
|
+
"primitive": "string"
|
|
5471
|
+
}
|
|
5472
|
+
},
|
|
5473
|
+
{
|
|
5474
|
+
"abstract": true,
|
|
5475
|
+
"docs": {
|
|
5476
|
+
"stability": "stable"
|
|
5477
|
+
},
|
|
5478
|
+
"immutable": true,
|
|
5479
|
+
"locationInModule": {
|
|
5480
|
+
"filename": "src/nextjs-compute/nextjs-containers.ts",
|
|
5481
|
+
"line": 37
|
|
5335
5482
|
},
|
|
5336
5483
|
"name": "dockerImageAsset",
|
|
5337
5484
|
"type": {
|
|
@@ -5346,7 +5493,7 @@
|
|
|
5346
5493
|
"immutable": true,
|
|
5347
5494
|
"locationInModule": {
|
|
5348
5495
|
"filename": "src/nextjs-compute/nextjs-containers.ts",
|
|
5349
|
-
"line":
|
|
5496
|
+
"line": 38
|
|
5350
5497
|
},
|
|
5351
5498
|
"name": "fileSystem",
|
|
5352
5499
|
"type": {
|
|
@@ -5361,7 +5508,7 @@
|
|
|
5361
5508
|
"immutable": true,
|
|
5362
5509
|
"locationInModule": {
|
|
5363
5510
|
"filename": "src/nextjs-compute/nextjs-containers.ts",
|
|
5364
|
-
"line":
|
|
5511
|
+
"line": 39
|
|
5365
5512
|
},
|
|
5366
5513
|
"name": "nextjsType",
|
|
5367
5514
|
"type": {
|
|
@@ -5376,7 +5523,7 @@
|
|
|
5376
5523
|
"immutable": true,
|
|
5377
5524
|
"locationInModule": {
|
|
5378
5525
|
"filename": "src/nextjs-compute/nextjs-containers.ts",
|
|
5379
|
-
"line":
|
|
5526
|
+
"line": 41
|
|
5380
5527
|
},
|
|
5381
5528
|
"name": "relativeEntrypointPath",
|
|
5382
5529
|
"type": {
|
|
@@ -5391,7 +5538,7 @@
|
|
|
5391
5538
|
"immutable": true,
|
|
5392
5539
|
"locationInModule": {
|
|
5393
5540
|
"filename": "src/nextjs-compute/nextjs-containers.ts",
|
|
5394
|
-
"line":
|
|
5541
|
+
"line": 40
|
|
5395
5542
|
},
|
|
5396
5543
|
"name": "overrides",
|
|
5397
5544
|
"optional": true,
|
|
@@ -6044,7 +6191,7 @@
|
|
|
6044
6191
|
},
|
|
6045
6192
|
"locationInModule": {
|
|
6046
6193
|
"filename": "src/nextjs-compute/nextjs-functions.ts",
|
|
6047
|
-
"line":
|
|
6194
|
+
"line": 42
|
|
6048
6195
|
},
|
|
6049
6196
|
"parameters": [
|
|
6050
6197
|
{
|
|
@@ -6070,7 +6217,7 @@
|
|
|
6070
6217
|
"kind": "class",
|
|
6071
6218
|
"locationInModule": {
|
|
6072
6219
|
"filename": "src/nextjs-compute/nextjs-functions.ts",
|
|
6073
|
-
"line":
|
|
6220
|
+
"line": 36
|
|
6074
6221
|
},
|
|
6075
6222
|
"name": "NextjsFunctions",
|
|
6076
6223
|
"properties": [
|
|
@@ -6080,7 +6227,7 @@
|
|
|
6080
6227
|
},
|
|
6081
6228
|
"locationInModule": {
|
|
6082
6229
|
"filename": "src/nextjs-compute/nextjs-functions.ts",
|
|
6083
|
-
"line":
|
|
6230
|
+
"line": 37
|
|
6084
6231
|
},
|
|
6085
6232
|
"name": "function",
|
|
6086
6233
|
"type": {
|
|
@@ -6093,7 +6240,7 @@
|
|
|
6093
6240
|
},
|
|
6094
6241
|
"locationInModule": {
|
|
6095
6242
|
"filename": "src/nextjs-compute/nextjs-functions.ts",
|
|
6096
|
-
"line":
|
|
6243
|
+
"line": 38
|
|
6097
6244
|
},
|
|
6098
6245
|
"name": "functionUrl",
|
|
6099
6246
|
"type": {
|
|
@@ -6113,7 +6260,7 @@
|
|
|
6113
6260
|
"kind": "interface",
|
|
6114
6261
|
"locationInModule": {
|
|
6115
6262
|
"filename": "src/nextjs-compute/nextjs-functions.ts",
|
|
6116
|
-
"line":
|
|
6263
|
+
"line": 22
|
|
6117
6264
|
},
|
|
6118
6265
|
"name": "NextjsFunctionsOverrides",
|
|
6119
6266
|
"properties": [
|
|
@@ -6125,7 +6272,7 @@
|
|
|
6125
6272
|
"immutable": true,
|
|
6126
6273
|
"locationInModule": {
|
|
6127
6274
|
"filename": "src/nextjs-compute/nextjs-functions.ts",
|
|
6128
|
-
"line":
|
|
6275
|
+
"line": 23
|
|
6129
6276
|
},
|
|
6130
6277
|
"name": "dockerImageFunctionProps",
|
|
6131
6278
|
"optional": true,
|
|
@@ -6141,7 +6288,7 @@
|
|
|
6141
6288
|
"immutable": true,
|
|
6142
6289
|
"locationInModule": {
|
|
6143
6290
|
"filename": "src/nextjs-compute/nextjs-functions.ts",
|
|
6144
|
-
"line":
|
|
6291
|
+
"line": 24
|
|
6145
6292
|
},
|
|
6146
6293
|
"name": "functionUrlProps",
|
|
6147
6294
|
"optional": true,
|
|
@@ -6165,7 +6312,7 @@
|
|
|
6165
6312
|
"kind": "interface",
|
|
6166
6313
|
"locationInModule": {
|
|
6167
6314
|
"filename": "src/nextjs-compute/nextjs-functions.ts",
|
|
6168
|
-
"line":
|
|
6315
|
+
"line": 27
|
|
6169
6316
|
},
|
|
6170
6317
|
"name": "NextjsFunctionsProps",
|
|
6171
6318
|
"properties": [
|
|
@@ -6177,7 +6324,22 @@
|
|
|
6177
6324
|
"immutable": true,
|
|
6178
6325
|
"locationInModule": {
|
|
6179
6326
|
"filename": "src/nextjs-compute/nextjs-functions.ts",
|
|
6180
|
-
"line":
|
|
6327
|
+
"line": 30
|
|
6328
|
+
},
|
|
6329
|
+
"name": "buildId",
|
|
6330
|
+
"type": {
|
|
6331
|
+
"primitive": "string"
|
|
6332
|
+
}
|
|
6333
|
+
},
|
|
6334
|
+
{
|
|
6335
|
+
"abstract": true,
|
|
6336
|
+
"docs": {
|
|
6337
|
+
"stability": "stable"
|
|
6338
|
+
},
|
|
6339
|
+
"immutable": true,
|
|
6340
|
+
"locationInModule": {
|
|
6341
|
+
"filename": "src/nextjs-compute/nextjs-functions.ts",
|
|
6342
|
+
"line": 28
|
|
6181
6343
|
},
|
|
6182
6344
|
"name": "dockerImageCode",
|
|
6183
6345
|
"type": {
|
|
@@ -6192,7 +6354,7 @@
|
|
|
6192
6354
|
"immutable": true,
|
|
6193
6355
|
"locationInModule": {
|
|
6194
6356
|
"filename": "src/nextjs-compute/nextjs-functions.ts",
|
|
6195
|
-
"line":
|
|
6357
|
+
"line": 29
|
|
6196
6358
|
},
|
|
6197
6359
|
"name": "overrides",
|
|
6198
6360
|
"optional": true,
|
|
@@ -6217,7 +6379,7 @@
|
|
|
6217
6379
|
},
|
|
6218
6380
|
"locationInModule": {
|
|
6219
6381
|
"filename": "src/root-constructs/nextjs-global-containers.ts",
|
|
6220
|
-
"line":
|
|
6382
|
+
"line": 87
|
|
6221
6383
|
},
|
|
6222
6384
|
"parameters": [
|
|
6223
6385
|
{
|
|
@@ -6243,7 +6405,7 @@
|
|
|
6243
6405
|
"kind": "class",
|
|
6244
6406
|
"locationInModule": {
|
|
6245
6407
|
"filename": "src/root-constructs/nextjs-global-containers.ts",
|
|
6246
|
-
"line":
|
|
6408
|
+
"line": 74
|
|
6247
6409
|
},
|
|
6248
6410
|
"name": "NextjsGlobalContainers",
|
|
6249
6411
|
"properties": [
|
|
@@ -6253,7 +6415,7 @@
|
|
|
6253
6415
|
},
|
|
6254
6416
|
"locationInModule": {
|
|
6255
6417
|
"filename": "src/root-constructs/nextjs-global-containers.ts",
|
|
6256
|
-
"line":
|
|
6418
|
+
"line": 79
|
|
6257
6419
|
},
|
|
6258
6420
|
"name": "nextjsAssetsDeployment",
|
|
6259
6421
|
"type": {
|
|
@@ -6266,7 +6428,7 @@
|
|
|
6266
6428
|
},
|
|
6267
6429
|
"locationInModule": {
|
|
6268
6430
|
"filename": "src/root-constructs/nextjs-global-containers.ts",
|
|
6269
|
-
"line":
|
|
6431
|
+
"line": 75
|
|
6270
6432
|
},
|
|
6271
6433
|
"name": "nextjsBuild",
|
|
6272
6434
|
"type": {
|
|
@@ -6279,7 +6441,7 @@
|
|
|
6279
6441
|
},
|
|
6280
6442
|
"locationInModule": {
|
|
6281
6443
|
"filename": "src/root-constructs/nextjs-global-containers.ts",
|
|
6282
|
-
"line":
|
|
6444
|
+
"line": 80
|
|
6283
6445
|
},
|
|
6284
6446
|
"name": "nextjsContainers",
|
|
6285
6447
|
"type": {
|
|
@@ -6292,7 +6454,7 @@
|
|
|
6292
6454
|
},
|
|
6293
6455
|
"locationInModule": {
|
|
6294
6456
|
"filename": "src/root-constructs/nextjs-global-containers.ts",
|
|
6295
|
-
"line":
|
|
6457
|
+
"line": 81
|
|
6296
6458
|
},
|
|
6297
6459
|
"name": "nextjsDistribution",
|
|
6298
6460
|
"type": {
|
|
@@ -6305,7 +6467,7 @@
|
|
|
6305
6467
|
},
|
|
6306
6468
|
"locationInModule": {
|
|
6307
6469
|
"filename": "src/root-constructs/nextjs-global-containers.ts",
|
|
6308
|
-
"line":
|
|
6470
|
+
"line": 78
|
|
6309
6471
|
},
|
|
6310
6472
|
"name": "nextjsFileSystem",
|
|
6311
6473
|
"type": {
|
|
@@ -6318,11 +6480,11 @@
|
|
|
6318
6480
|
},
|
|
6319
6481
|
"locationInModule": {
|
|
6320
6482
|
"filename": "src/root-constructs/nextjs-global-containers.ts",
|
|
6321
|
-
"line":
|
|
6483
|
+
"line": 82
|
|
6322
6484
|
},
|
|
6323
|
-
"name": "
|
|
6485
|
+
"name": "nextjsPostDeploy",
|
|
6324
6486
|
"type": {
|
|
6325
|
-
"fqn": "cdk-nextjs.
|
|
6487
|
+
"fqn": "cdk-nextjs.NextjsPostDeploy"
|
|
6326
6488
|
}
|
|
6327
6489
|
},
|
|
6328
6490
|
{
|
|
@@ -6331,7 +6493,7 @@
|
|
|
6331
6493
|
},
|
|
6332
6494
|
"locationInModule": {
|
|
6333
6495
|
"filename": "src/root-constructs/nextjs-global-containers.ts",
|
|
6334
|
-
"line":
|
|
6496
|
+
"line": 76
|
|
6335
6497
|
},
|
|
6336
6498
|
"name": "nextjsStaticAssets",
|
|
6337
6499
|
"type": {
|
|
@@ -6344,7 +6506,7 @@
|
|
|
6344
6506
|
},
|
|
6345
6507
|
"locationInModule": {
|
|
6346
6508
|
"filename": "src/root-constructs/nextjs-global-containers.ts",
|
|
6347
|
-
"line":
|
|
6509
|
+
"line": 77
|
|
6348
6510
|
},
|
|
6349
6511
|
"name": "nextjsVpc",
|
|
6350
6512
|
"type": {
|
|
@@ -6367,7 +6529,7 @@
|
|
|
6367
6529
|
"kind": "interface",
|
|
6368
6530
|
"locationInModule": {
|
|
6369
6531
|
"filename": "src/root-constructs/nextjs-global-containers.ts",
|
|
6370
|
-
"line":
|
|
6532
|
+
"line": 31
|
|
6371
6533
|
},
|
|
6372
6534
|
"name": "NextjsGlobalContainersConstructOverrides",
|
|
6373
6535
|
"properties": [
|
|
@@ -6379,7 +6541,7 @@
|
|
|
6379
6541
|
"immutable": true,
|
|
6380
6542
|
"locationInModule": {
|
|
6381
6543
|
"filename": "src/root-constructs/nextjs-global-containers.ts",
|
|
6382
|
-
"line":
|
|
6544
|
+
"line": 33
|
|
6383
6545
|
},
|
|
6384
6546
|
"name": "nextjsContainersProps",
|
|
6385
6547
|
"optional": true,
|
|
@@ -6395,7 +6557,7 @@
|
|
|
6395
6557
|
"immutable": true,
|
|
6396
6558
|
"locationInModule": {
|
|
6397
6559
|
"filename": "src/root-constructs/nextjs-global-containers.ts",
|
|
6398
|
-
"line":
|
|
6560
|
+
"line": 34
|
|
6399
6561
|
},
|
|
6400
6562
|
"name": "nextjsDistributionProps",
|
|
6401
6563
|
"optional": true,
|
|
@@ -6411,39 +6573,7 @@
|
|
|
6411
6573
|
"immutable": true,
|
|
6412
6574
|
"locationInModule": {
|
|
6413
6575
|
"filename": "src/root-constructs/nextjs-global-containers.ts",
|
|
6414
|
-
"line":
|
|
6415
|
-
},
|
|
6416
|
-
"name": "nextjsInvalidationProps",
|
|
6417
|
-
"optional": true,
|
|
6418
|
-
"type": {
|
|
6419
|
-
"fqn": "cdk-nextjs.OptionalNextjsInvalidationProps"
|
|
6420
|
-
}
|
|
6421
|
-
},
|
|
6422
|
-
{
|
|
6423
|
-
"abstract": true,
|
|
6424
|
-
"docs": {
|
|
6425
|
-
"stability": "stable"
|
|
6426
|
-
},
|
|
6427
|
-
"immutable": true,
|
|
6428
|
-
"locationInModule": {
|
|
6429
|
-
"filename": "src/root-constructs/nextjs-global-containers.ts",
|
|
6430
|
-
"line": 39
|
|
6431
|
-
},
|
|
6432
|
-
"name": "nextjsRevalidationProps",
|
|
6433
|
-
"optional": true,
|
|
6434
|
-
"type": {
|
|
6435
|
-
"fqn": "cdk-nextjs.NextjsRevalidationProps"
|
|
6436
|
-
}
|
|
6437
|
-
},
|
|
6438
|
-
{
|
|
6439
|
-
"abstract": true,
|
|
6440
|
-
"docs": {
|
|
6441
|
-
"stability": "stable"
|
|
6442
|
-
},
|
|
6443
|
-
"immutable": true,
|
|
6444
|
-
"locationInModule": {
|
|
6445
|
-
"filename": "src/root-constructs/nextjs-global-containers.ts",
|
|
6446
|
-
"line": 40
|
|
6576
|
+
"line": 35
|
|
6447
6577
|
},
|
|
6448
6578
|
"name": "nextjsStaticAssetsProps",
|
|
6449
6579
|
"optional": true,
|
|
@@ -6458,7 +6588,9 @@
|
|
|
6458
6588
|
"assembly": "cdk-nextjs",
|
|
6459
6589
|
"datatype": true,
|
|
6460
6590
|
"docs": {
|
|
6461
|
-
"
|
|
6591
|
+
"remarks": "Overrides are lower level than\nprops and are passed directly to CDK Constructs giving you more control. It's\nrecommended to use caution and review source code so you know how they're used.",
|
|
6592
|
+
"stability": "stable",
|
|
6593
|
+
"summary": "Overrides for `NextjsGlobalContainers`."
|
|
6462
6594
|
},
|
|
6463
6595
|
"fqn": "cdk-nextjs.NextjsGlobalContainersOverrides",
|
|
6464
6596
|
"interfaces": [
|
|
@@ -6467,7 +6599,7 @@
|
|
|
6467
6599
|
"kind": "interface",
|
|
6468
6600
|
"locationInModule": {
|
|
6469
6601
|
"filename": "src/root-constructs/nextjs-global-containers.ts",
|
|
6470
|
-
"line":
|
|
6602
|
+
"line": 43
|
|
6471
6603
|
},
|
|
6472
6604
|
"name": "NextjsGlobalContainersOverrides",
|
|
6473
6605
|
"properties": [
|
|
@@ -6479,7 +6611,7 @@
|
|
|
6479
6611
|
"immutable": true,
|
|
6480
6612
|
"locationInModule": {
|
|
6481
6613
|
"filename": "src/root-constructs/nextjs-global-containers.ts",
|
|
6482
|
-
"line":
|
|
6614
|
+
"line": 45
|
|
6483
6615
|
},
|
|
6484
6616
|
"name": "nextjsContainers",
|
|
6485
6617
|
"optional": true,
|
|
@@ -6495,7 +6627,7 @@
|
|
|
6495
6627
|
"immutable": true,
|
|
6496
6628
|
"locationInModule": {
|
|
6497
6629
|
"filename": "src/root-constructs/nextjs-global-containers.ts",
|
|
6498
|
-
"line":
|
|
6630
|
+
"line": 46
|
|
6499
6631
|
},
|
|
6500
6632
|
"name": "nextjsDistribution",
|
|
6501
6633
|
"optional": true,
|
|
@@ -6511,7 +6643,7 @@
|
|
|
6511
6643
|
"immutable": true,
|
|
6512
6644
|
"locationInModule": {
|
|
6513
6645
|
"filename": "src/root-constructs/nextjs-global-containers.ts",
|
|
6514
|
-
"line":
|
|
6646
|
+
"line": 44
|
|
6515
6647
|
},
|
|
6516
6648
|
"name": "nextjsGlobalContainers",
|
|
6517
6649
|
"optional": true,
|
|
@@ -6527,23 +6659,7 @@
|
|
|
6527
6659
|
"immutable": true,
|
|
6528
6660
|
"locationInModule": {
|
|
6529
6661
|
"filename": "src/root-constructs/nextjs-global-containers.ts",
|
|
6530
|
-
"line":
|
|
6531
|
-
},
|
|
6532
|
-
"name": "nextjsInvalidation",
|
|
6533
|
-
"optional": true,
|
|
6534
|
-
"type": {
|
|
6535
|
-
"fqn": "cdk-nextjs.NextjsInvalidationOverrides"
|
|
6536
|
-
}
|
|
6537
|
-
},
|
|
6538
|
-
{
|
|
6539
|
-
"abstract": true,
|
|
6540
|
-
"docs": {
|
|
6541
|
-
"stability": "stable"
|
|
6542
|
-
},
|
|
6543
|
-
"immutable": true,
|
|
6544
|
-
"locationInModule": {
|
|
6545
|
-
"filename": "src/root-constructs/nextjs-global-containers.ts",
|
|
6546
|
-
"line": 49
|
|
6662
|
+
"line": 47
|
|
6547
6663
|
},
|
|
6548
6664
|
"name": "nextjsStaticAssets",
|
|
6549
6665
|
"optional": true,
|
|
@@ -6567,7 +6683,7 @@
|
|
|
6567
6683
|
"kind": "interface",
|
|
6568
6684
|
"locationInModule": {
|
|
6569
6685
|
"filename": "src/root-constructs/nextjs-global-containers.ts",
|
|
6570
|
-
"line":
|
|
6686
|
+
"line": 50
|
|
6571
6687
|
},
|
|
6572
6688
|
"name": "NextjsGlobalContainersProps",
|
|
6573
6689
|
"properties": [
|
|
@@ -6582,7 +6698,7 @@
|
|
|
6582
6698
|
"immutable": true,
|
|
6583
6699
|
"locationInModule": {
|
|
6584
6700
|
"filename": "src/root-constructs/nextjs-global-containers.ts",
|
|
6585
|
-
"line":
|
|
6701
|
+
"line": 56
|
|
6586
6702
|
},
|
|
6587
6703
|
"name": "basePath",
|
|
6588
6704
|
"optional": true,
|
|
@@ -6600,7 +6716,7 @@
|
|
|
6600
6716
|
"immutable": true,
|
|
6601
6717
|
"locationInModule": {
|
|
6602
6718
|
"filename": "src/root-constructs/nextjs-global-containers.ts",
|
|
6603
|
-
"line":
|
|
6719
|
+
"line": 61
|
|
6604
6720
|
},
|
|
6605
6721
|
"name": "distribution",
|
|
6606
6722
|
"optional": true,
|
|
@@ -6617,7 +6733,7 @@
|
|
|
6617
6733
|
"immutable": true,
|
|
6618
6734
|
"locationInModule": {
|
|
6619
6735
|
"filename": "src/root-constructs/nextjs-global-containers.ts",
|
|
6620
|
-
"line":
|
|
6736
|
+
"line": 65
|
|
6621
6737
|
},
|
|
6622
6738
|
"name": "overrides",
|
|
6623
6739
|
"optional": true,
|
|
@@ -6642,7 +6758,7 @@
|
|
|
6642
6758
|
},
|
|
6643
6759
|
"locationInModule": {
|
|
6644
6760
|
"filename": "src/root-constructs/nextjs-global-functions.ts",
|
|
6645
|
-
"line":
|
|
6761
|
+
"line": 87
|
|
6646
6762
|
},
|
|
6647
6763
|
"parameters": [
|
|
6648
6764
|
{
|
|
@@ -6668,7 +6784,7 @@
|
|
|
6668
6784
|
"kind": "class",
|
|
6669
6785
|
"locationInModule": {
|
|
6670
6786
|
"filename": "src/root-constructs/nextjs-global-functions.ts",
|
|
6671
|
-
"line":
|
|
6787
|
+
"line": 74
|
|
6672
6788
|
},
|
|
6673
6789
|
"name": "NextjsGlobalFunctions",
|
|
6674
6790
|
"properties": [
|
|
@@ -6678,7 +6794,7 @@
|
|
|
6678
6794
|
},
|
|
6679
6795
|
"locationInModule": {
|
|
6680
6796
|
"filename": "src/root-constructs/nextjs-global-functions.ts",
|
|
6681
|
-
"line":
|
|
6797
|
+
"line": 79
|
|
6682
6798
|
},
|
|
6683
6799
|
"name": "nextjsAssetsDeployment",
|
|
6684
6800
|
"type": {
|
|
@@ -6691,7 +6807,7 @@
|
|
|
6691
6807
|
},
|
|
6692
6808
|
"locationInModule": {
|
|
6693
6809
|
"filename": "src/root-constructs/nextjs-global-functions.ts",
|
|
6694
|
-
"line":
|
|
6810
|
+
"line": 75
|
|
6695
6811
|
},
|
|
6696
6812
|
"name": "nextjsBuild",
|
|
6697
6813
|
"type": {
|
|
@@ -6704,7 +6820,7 @@
|
|
|
6704
6820
|
},
|
|
6705
6821
|
"locationInModule": {
|
|
6706
6822
|
"filename": "src/root-constructs/nextjs-global-functions.ts",
|
|
6707
|
-
"line":
|
|
6823
|
+
"line": 81
|
|
6708
6824
|
},
|
|
6709
6825
|
"name": "nextjsDistribution",
|
|
6710
6826
|
"type": {
|
|
@@ -6717,7 +6833,7 @@
|
|
|
6717
6833
|
},
|
|
6718
6834
|
"locationInModule": {
|
|
6719
6835
|
"filename": "src/root-constructs/nextjs-global-functions.ts",
|
|
6720
|
-
"line":
|
|
6836
|
+
"line": 78
|
|
6721
6837
|
},
|
|
6722
6838
|
"name": "nextjsFileSystem",
|
|
6723
6839
|
"type": {
|
|
@@ -6730,7 +6846,7 @@
|
|
|
6730
6846
|
},
|
|
6731
6847
|
"locationInModule": {
|
|
6732
6848
|
"filename": "src/root-constructs/nextjs-global-functions.ts",
|
|
6733
|
-
"line":
|
|
6849
|
+
"line": 80
|
|
6734
6850
|
},
|
|
6735
6851
|
"name": "nextjsFunctions",
|
|
6736
6852
|
"type": {
|
|
@@ -6743,11 +6859,11 @@
|
|
|
6743
6859
|
},
|
|
6744
6860
|
"locationInModule": {
|
|
6745
6861
|
"filename": "src/root-constructs/nextjs-global-functions.ts",
|
|
6746
|
-
"line":
|
|
6862
|
+
"line": 82
|
|
6747
6863
|
},
|
|
6748
|
-
"name": "
|
|
6864
|
+
"name": "nextjsPostDeploy",
|
|
6749
6865
|
"type": {
|
|
6750
|
-
"fqn": "cdk-nextjs.
|
|
6866
|
+
"fqn": "cdk-nextjs.NextjsPostDeploy"
|
|
6751
6867
|
}
|
|
6752
6868
|
},
|
|
6753
6869
|
{
|
|
@@ -6756,11 +6872,11 @@
|
|
|
6756
6872
|
},
|
|
6757
6873
|
"locationInModule": {
|
|
6758
6874
|
"filename": "src/root-constructs/nextjs-global-functions.ts",
|
|
6759
|
-
"line":
|
|
6875
|
+
"line": 76
|
|
6760
6876
|
},
|
|
6761
|
-
"name": "
|
|
6877
|
+
"name": "nextjsStaticAssets",
|
|
6762
6878
|
"type": {
|
|
6763
|
-
"fqn": "cdk-nextjs.
|
|
6879
|
+
"fqn": "cdk-nextjs.NextjsStaticAssets"
|
|
6764
6880
|
}
|
|
6765
6881
|
},
|
|
6766
6882
|
{
|
|
@@ -6769,24 +6885,11 @@
|
|
|
6769
6885
|
},
|
|
6770
6886
|
"locationInModule": {
|
|
6771
6887
|
"filename": "src/root-constructs/nextjs-global-functions.ts",
|
|
6772
|
-
"line":
|
|
6888
|
+
"line": 77
|
|
6773
6889
|
},
|
|
6774
|
-
"name": "
|
|
6890
|
+
"name": "nextjsVpc",
|
|
6775
6891
|
"type": {
|
|
6776
|
-
"fqn": "cdk-nextjs.
|
|
6777
|
-
}
|
|
6778
|
-
},
|
|
6779
|
-
{
|
|
6780
|
-
"docs": {
|
|
6781
|
-
"stability": "stable"
|
|
6782
|
-
},
|
|
6783
|
-
"locationInModule": {
|
|
6784
|
-
"filename": "src/root-constructs/nextjs-global-functions.ts",
|
|
6785
|
-
"line": 84
|
|
6786
|
-
},
|
|
6787
|
-
"name": "nextjsVpc",
|
|
6788
|
-
"type": {
|
|
6789
|
-
"fqn": "cdk-nextjs.NextjsVpc"
|
|
6892
|
+
"fqn": "cdk-nextjs.NextjsVpc"
|
|
6790
6893
|
}
|
|
6791
6894
|
}
|
|
6792
6895
|
],
|
|
@@ -6805,7 +6908,7 @@
|
|
|
6805
6908
|
"kind": "interface",
|
|
6806
6909
|
"locationInModule": {
|
|
6807
6910
|
"filename": "src/root-constructs/nextjs-global-functions.ts",
|
|
6808
|
-
"line":
|
|
6911
|
+
"line": 31
|
|
6809
6912
|
},
|
|
6810
6913
|
"name": "NextjsGlobalFunctionsConstructOverrides",
|
|
6811
6914
|
"properties": [
|
|
@@ -6817,7 +6920,7 @@
|
|
|
6817
6920
|
"immutable": true,
|
|
6818
6921
|
"locationInModule": {
|
|
6819
6922
|
"filename": "src/root-constructs/nextjs-global-functions.ts",
|
|
6820
|
-
"line":
|
|
6923
|
+
"line": 34
|
|
6821
6924
|
},
|
|
6822
6925
|
"name": "nextjsDistributionProps",
|
|
6823
6926
|
"optional": true,
|
|
@@ -6833,7 +6936,7 @@
|
|
|
6833
6936
|
"immutable": true,
|
|
6834
6937
|
"locationInModule": {
|
|
6835
6938
|
"filename": "src/root-constructs/nextjs-global-functions.ts",
|
|
6836
|
-
"line":
|
|
6939
|
+
"line": 33
|
|
6837
6940
|
},
|
|
6838
6941
|
"name": "nextjsFunctionsProps",
|
|
6839
6942
|
"optional": true,
|
|
@@ -6849,39 +6952,7 @@
|
|
|
6849
6952
|
"immutable": true,
|
|
6850
6953
|
"locationInModule": {
|
|
6851
6954
|
"filename": "src/root-constructs/nextjs-global-functions.ts",
|
|
6852
|
-
"line":
|
|
6853
|
-
},
|
|
6854
|
-
"name": "nextjsInvalidationProps",
|
|
6855
|
-
"optional": true,
|
|
6856
|
-
"type": {
|
|
6857
|
-
"fqn": "cdk-nextjs.OptionalNextjsInvalidationProps"
|
|
6858
|
-
}
|
|
6859
|
-
},
|
|
6860
|
-
{
|
|
6861
|
-
"abstract": true,
|
|
6862
|
-
"docs": {
|
|
6863
|
-
"stability": "stable"
|
|
6864
|
-
},
|
|
6865
|
-
"immutable": true,
|
|
6866
|
-
"locationInModule": {
|
|
6867
|
-
"filename": "src/root-constructs/nextjs-global-functions.ts",
|
|
6868
|
-
"line": 44
|
|
6869
|
-
},
|
|
6870
|
-
"name": "nextjsRevalidationProps",
|
|
6871
|
-
"optional": true,
|
|
6872
|
-
"type": {
|
|
6873
|
-
"fqn": "cdk-nextjs.NextjsRevalidationProps"
|
|
6874
|
-
}
|
|
6875
|
-
},
|
|
6876
|
-
{
|
|
6877
|
-
"abstract": true,
|
|
6878
|
-
"docs": {
|
|
6879
|
-
"stability": "stable"
|
|
6880
|
-
},
|
|
6881
|
-
"immutable": true,
|
|
6882
|
-
"locationInModule": {
|
|
6883
|
-
"filename": "src/root-constructs/nextjs-global-functions.ts",
|
|
6884
|
-
"line": 45
|
|
6955
|
+
"line": 35
|
|
6885
6956
|
},
|
|
6886
6957
|
"name": "nextjsStaticAssetsProps",
|
|
6887
6958
|
"optional": true,
|
|
@@ -6896,7 +6967,9 @@
|
|
|
6896
6967
|
"assembly": "cdk-nextjs",
|
|
6897
6968
|
"datatype": true,
|
|
6898
6969
|
"docs": {
|
|
6899
|
-
"
|
|
6970
|
+
"remarks": "Overrides are lower level than\nprops and are passed directly to CDK Constructs giving you more control. It's\nrecommended to use caution and review source code so you know how they're used.",
|
|
6971
|
+
"stability": "stable",
|
|
6972
|
+
"summary": "Overrides for `NextjsGlobalFunctions`."
|
|
6900
6973
|
},
|
|
6901
6974
|
"fqn": "cdk-nextjs.NextjsGlobalFunctionsOverrides",
|
|
6902
6975
|
"interfaces": [
|
|
@@ -6905,7 +6978,7 @@
|
|
|
6905
6978
|
"kind": "interface",
|
|
6906
6979
|
"locationInModule": {
|
|
6907
6980
|
"filename": "src/root-constructs/nextjs-global-functions.ts",
|
|
6908
|
-
"line":
|
|
6981
|
+
"line": 43
|
|
6909
6982
|
},
|
|
6910
6983
|
"name": "NextjsGlobalFunctionsOverrides",
|
|
6911
6984
|
"properties": [
|
|
@@ -6917,7 +6990,7 @@
|
|
|
6917
6990
|
"immutable": true,
|
|
6918
6991
|
"locationInModule": {
|
|
6919
6992
|
"filename": "src/root-constructs/nextjs-global-functions.ts",
|
|
6920
|
-
"line":
|
|
6993
|
+
"line": 46
|
|
6921
6994
|
},
|
|
6922
6995
|
"name": "nextjsDistribution",
|
|
6923
6996
|
"optional": true,
|
|
@@ -6933,7 +7006,7 @@
|
|
|
6933
7006
|
"immutable": true,
|
|
6934
7007
|
"locationInModule": {
|
|
6935
7008
|
"filename": "src/root-constructs/nextjs-global-functions.ts",
|
|
6936
|
-
"line":
|
|
7009
|
+
"line": 45
|
|
6937
7010
|
},
|
|
6938
7011
|
"name": "nextjsFunctions",
|
|
6939
7012
|
"optional": true,
|
|
@@ -6949,7 +7022,7 @@
|
|
|
6949
7022
|
"immutable": true,
|
|
6950
7023
|
"locationInModule": {
|
|
6951
7024
|
"filename": "src/root-constructs/nextjs-global-functions.ts",
|
|
6952
|
-
"line":
|
|
7025
|
+
"line": 44
|
|
6953
7026
|
},
|
|
6954
7027
|
"name": "nextjsGlobalFunctions",
|
|
6955
7028
|
"optional": true,
|
|
@@ -6965,39 +7038,7 @@
|
|
|
6965
7038
|
"immutable": true,
|
|
6966
7039
|
"locationInModule": {
|
|
6967
7040
|
"filename": "src/root-constructs/nextjs-global-functions.ts",
|
|
6968
|
-
"line":
|
|
6969
|
-
},
|
|
6970
|
-
"name": "nextjsInvalidation",
|
|
6971
|
-
"optional": true,
|
|
6972
|
-
"type": {
|
|
6973
|
-
"fqn": "cdk-nextjs.NextjsInvalidationOverrides"
|
|
6974
|
-
}
|
|
6975
|
-
},
|
|
6976
|
-
{
|
|
6977
|
-
"abstract": true,
|
|
6978
|
-
"docs": {
|
|
6979
|
-
"stability": "stable"
|
|
6980
|
-
},
|
|
6981
|
-
"immutable": true,
|
|
6982
|
-
"locationInModule": {
|
|
6983
|
-
"filename": "src/root-constructs/nextjs-global-functions.ts",
|
|
6984
|
-
"line": 52
|
|
6985
|
-
},
|
|
6986
|
-
"name": "nextjsRevalidation",
|
|
6987
|
-
"optional": true,
|
|
6988
|
-
"type": {
|
|
6989
|
-
"fqn": "cdk-nextjs.NextjsRevalidationOverrides"
|
|
6990
|
-
}
|
|
6991
|
-
},
|
|
6992
|
-
{
|
|
6993
|
-
"abstract": true,
|
|
6994
|
-
"docs": {
|
|
6995
|
-
"stability": "stable"
|
|
6996
|
-
},
|
|
6997
|
-
"immutable": true,
|
|
6998
|
-
"locationInModule": {
|
|
6999
|
-
"filename": "src/root-constructs/nextjs-global-functions.ts",
|
|
7000
|
-
"line": 54
|
|
7041
|
+
"line": 47
|
|
7001
7042
|
},
|
|
7002
7043
|
"name": "nextjsStaticAssets",
|
|
7003
7044
|
"optional": true,
|
|
@@ -7021,7 +7062,7 @@
|
|
|
7021
7062
|
"kind": "interface",
|
|
7022
7063
|
"locationInModule": {
|
|
7023
7064
|
"filename": "src/root-constructs/nextjs-global-functions.ts",
|
|
7024
|
-
"line":
|
|
7065
|
+
"line": 50
|
|
7025
7066
|
},
|
|
7026
7067
|
"name": "NextjsGlobalFunctionsProps",
|
|
7027
7068
|
"properties": [
|
|
@@ -7036,7 +7077,7 @@
|
|
|
7036
7077
|
"immutable": true,
|
|
7037
7078
|
"locationInModule": {
|
|
7038
7079
|
"filename": "src/root-constructs/nextjs-global-functions.ts",
|
|
7039
|
-
"line":
|
|
7080
|
+
"line": 56
|
|
7040
7081
|
},
|
|
7041
7082
|
"name": "basePath",
|
|
7042
7083
|
"optional": true,
|
|
@@ -7054,7 +7095,7 @@
|
|
|
7054
7095
|
"immutable": true,
|
|
7055
7096
|
"locationInModule": {
|
|
7056
7097
|
"filename": "src/root-constructs/nextjs-global-functions.ts",
|
|
7057
|
-
"line":
|
|
7098
|
+
"line": 61
|
|
7058
7099
|
},
|
|
7059
7100
|
"name": "distribution",
|
|
7060
7101
|
"optional": true,
|
|
@@ -7071,7 +7112,7 @@
|
|
|
7071
7112
|
"immutable": true,
|
|
7072
7113
|
"locationInModule": {
|
|
7073
7114
|
"filename": "src/root-constructs/nextjs-global-functions.ts",
|
|
7074
|
-
"line":
|
|
7115
|
+
"line": 65
|
|
7075
7116
|
},
|
|
7076
7117
|
"name": "overrides",
|
|
7077
7118
|
"optional": true,
|
|
@@ -7082,20 +7123,22 @@
|
|
|
7082
7123
|
],
|
|
7083
7124
|
"symbolId": "src/root-constructs/nextjs-global-functions:NextjsGlobalFunctionsProps"
|
|
7084
7125
|
},
|
|
7085
|
-
"cdk-nextjs.
|
|
7126
|
+
"cdk-nextjs.NextjsPostDeploy": {
|
|
7086
7127
|
"assembly": "cdk-nextjs",
|
|
7087
7128
|
"base": "constructs.Construct",
|
|
7088
7129
|
"docs": {
|
|
7089
|
-
"
|
|
7130
|
+
"remarks": "1. CloudFront Invalidation (defaults to /*)\n2. Prunes FileSystem by removing directories that don't match this deployments BUILD_ID\n3. Prune S3 by removing objects that don't have next-build-id metadata of\ncurrent build id AND are older than `msTtl`",
|
|
7131
|
+
"stability": "stable",
|
|
7132
|
+
"summary": "Performs post deployment tasks in custom resource."
|
|
7090
7133
|
},
|
|
7091
|
-
"fqn": "cdk-nextjs.
|
|
7134
|
+
"fqn": "cdk-nextjs.NextjsPostDeploy",
|
|
7092
7135
|
"initializer": {
|
|
7093
7136
|
"docs": {
|
|
7094
7137
|
"stability": "stable"
|
|
7095
7138
|
},
|
|
7096
7139
|
"locationInModule": {
|
|
7097
|
-
"filename": "src/nextjs-
|
|
7098
|
-
"line":
|
|
7140
|
+
"filename": "src/nextjs-post-deploy.ts",
|
|
7141
|
+
"line": 113
|
|
7099
7142
|
},
|
|
7100
7143
|
"parameters": [
|
|
7101
7144
|
{
|
|
@@ -7113,354 +7156,293 @@
|
|
|
7113
7156
|
{
|
|
7114
7157
|
"name": "props",
|
|
7115
7158
|
"type": {
|
|
7116
|
-
"fqn": "cdk-nextjs.
|
|
7159
|
+
"fqn": "cdk-nextjs.NextjsPostDeployProps"
|
|
7117
7160
|
}
|
|
7118
7161
|
}
|
|
7119
7162
|
]
|
|
7120
7163
|
},
|
|
7121
7164
|
"kind": "class",
|
|
7122
7165
|
"locationInModule": {
|
|
7123
|
-
"filename": "src/nextjs-
|
|
7124
|
-
"line":
|
|
7125
|
-
},
|
|
7126
|
-
"name": "NextjsInvalidation",
|
|
7127
|
-
"symbolId": "src/nextjs-invalidation:NextjsInvalidation"
|
|
7128
|
-
},
|
|
7129
|
-
"cdk-nextjs.NextjsInvalidationOverrides": {
|
|
7130
|
-
"assembly": "cdk-nextjs",
|
|
7131
|
-
"datatype": true,
|
|
7132
|
-
"docs": {
|
|
7133
|
-
"stability": "stable"
|
|
7166
|
+
"filename": "src/nextjs-post-deploy.ts",
|
|
7167
|
+
"line": 107
|
|
7134
7168
|
},
|
|
7135
|
-
"
|
|
7136
|
-
"kind": "interface",
|
|
7137
|
-
"locationInModule": {
|
|
7138
|
-
"filename": "src/nextjs-invalidation.ts",
|
|
7139
|
-
"line": 13
|
|
7140
|
-
},
|
|
7141
|
-
"name": "NextjsInvalidationOverrides",
|
|
7169
|
+
"name": "NextjsPostDeploy",
|
|
7142
7170
|
"properties": [
|
|
7143
7171
|
{
|
|
7144
|
-
"abstract": true,
|
|
7145
7172
|
"docs": {
|
|
7146
7173
|
"stability": "stable"
|
|
7147
7174
|
},
|
|
7148
|
-
"immutable": true,
|
|
7149
7175
|
"locationInModule": {
|
|
7150
|
-
"filename": "src/nextjs-
|
|
7151
|
-
"line":
|
|
7176
|
+
"filename": "src/nextjs-post-deploy.ts",
|
|
7177
|
+
"line": 108
|
|
7152
7178
|
},
|
|
7153
|
-
"name": "
|
|
7154
|
-
"optional": true,
|
|
7179
|
+
"name": "customResource",
|
|
7155
7180
|
"type": {
|
|
7156
|
-
"fqn": "aws-cdk-lib.
|
|
7181
|
+
"fqn": "aws-cdk-lib.CustomResource"
|
|
7182
|
+
}
|
|
7183
|
+
},
|
|
7184
|
+
{
|
|
7185
|
+
"docs": {
|
|
7186
|
+
"stability": "stable"
|
|
7187
|
+
},
|
|
7188
|
+
"locationInModule": {
|
|
7189
|
+
"filename": "src/nextjs-post-deploy.ts",
|
|
7190
|
+
"line": 109
|
|
7191
|
+
},
|
|
7192
|
+
"name": "lambdaFunction",
|
|
7193
|
+
"type": {
|
|
7194
|
+
"fqn": "aws-cdk-lib.aws_lambda.Function"
|
|
7157
7195
|
}
|
|
7158
7196
|
}
|
|
7159
7197
|
],
|
|
7160
|
-
"symbolId": "src/nextjs-
|
|
7198
|
+
"symbolId": "src/nextjs-post-deploy:NextjsPostDeploy"
|
|
7161
7199
|
},
|
|
7162
|
-
"cdk-nextjs.
|
|
7200
|
+
"cdk-nextjs.NextjsPostDeployOverrides": {
|
|
7163
7201
|
"assembly": "cdk-nextjs",
|
|
7164
7202
|
"datatype": true,
|
|
7165
7203
|
"docs": {
|
|
7166
7204
|
"stability": "stable"
|
|
7167
7205
|
},
|
|
7168
|
-
"fqn": "cdk-nextjs.
|
|
7206
|
+
"fqn": "cdk-nextjs.NextjsPostDeployOverrides",
|
|
7169
7207
|
"kind": "interface",
|
|
7170
7208
|
"locationInModule": {
|
|
7171
|
-
"filename": "src/nextjs-
|
|
7172
|
-
"line":
|
|
7209
|
+
"filename": "src/nextjs-post-deploy.ts",
|
|
7210
|
+
"line": 21
|
|
7173
7211
|
},
|
|
7174
|
-
"name": "
|
|
7212
|
+
"name": "NextjsPostDeployOverrides",
|
|
7175
7213
|
"properties": [
|
|
7176
7214
|
{
|
|
7177
7215
|
"abstract": true,
|
|
7178
7216
|
"docs": {
|
|
7179
7217
|
"stability": "stable",
|
|
7180
|
-
"summary": "
|
|
7218
|
+
"summary": "Properties passed into custom resource that are passed to Lambda event handler."
|
|
7181
7219
|
},
|
|
7182
7220
|
"immutable": true,
|
|
7183
7221
|
"locationInModule": {
|
|
7184
|
-
"filename": "src/nextjs-
|
|
7185
|
-
"line":
|
|
7222
|
+
"filename": "src/nextjs-post-deploy.ts",
|
|
7223
|
+
"line": 30
|
|
7186
7224
|
},
|
|
7187
|
-
"name": "
|
|
7225
|
+
"name": "customResourceProperties",
|
|
7226
|
+
"optional": true,
|
|
7188
7227
|
"type": {
|
|
7189
|
-
"fqn": "
|
|
7228
|
+
"fqn": "cdk-nextjs.OptionalPostDeployCustomResourceProperties"
|
|
7190
7229
|
}
|
|
7191
7230
|
},
|
|
7192
7231
|
{
|
|
7193
7232
|
"abstract": true,
|
|
7194
7233
|
"docs": {
|
|
7195
7234
|
"stability": "stable",
|
|
7196
|
-
"summary": "
|
|
7235
|
+
"summary": "Props that define the custom resource."
|
|
7197
7236
|
},
|
|
7198
7237
|
"immutable": true,
|
|
7199
7238
|
"locationInModule": {
|
|
7200
|
-
"filename": "src/nextjs-
|
|
7201
|
-
"line":
|
|
7239
|
+
"filename": "src/nextjs-post-deploy.ts",
|
|
7240
|
+
"line": 26
|
|
7202
7241
|
},
|
|
7203
|
-
"name": "
|
|
7242
|
+
"name": "customResourceProps",
|
|
7243
|
+
"optional": true,
|
|
7244
|
+
"type": {
|
|
7245
|
+
"fqn": "cdk-nextjs.OptionalCustomResourceProps"
|
|
7246
|
+
}
|
|
7247
|
+
},
|
|
7248
|
+
{
|
|
7249
|
+
"abstract": true,
|
|
7250
|
+
"docs": {
|
|
7251
|
+
"stability": "stable"
|
|
7252
|
+
},
|
|
7253
|
+
"immutable": true,
|
|
7254
|
+
"locationInModule": {
|
|
7255
|
+
"filename": "src/nextjs-post-deploy.ts",
|
|
7256
|
+
"line": 22
|
|
7257
|
+
},
|
|
7258
|
+
"name": "functionProps",
|
|
7204
7259
|
"optional": true,
|
|
7205
7260
|
"type": {
|
|
7206
|
-
"fqn": "cdk-nextjs.
|
|
7261
|
+
"fqn": "cdk-nextjs.OptionalFunctionProps"
|
|
7207
7262
|
}
|
|
7208
7263
|
}
|
|
7209
7264
|
],
|
|
7210
|
-
"symbolId": "src/nextjs-
|
|
7265
|
+
"symbolId": "src/nextjs-post-deploy:NextjsPostDeployOverrides"
|
|
7211
7266
|
},
|
|
7212
|
-
"cdk-nextjs.
|
|
7267
|
+
"cdk-nextjs.NextjsPostDeployProps": {
|
|
7213
7268
|
"assembly": "cdk-nextjs",
|
|
7214
|
-
"
|
|
7269
|
+
"datatype": true,
|
|
7215
7270
|
"docs": {
|
|
7216
|
-
"stability": "stable"
|
|
7217
|
-
"summary": "Deploy Next.js load balanced with containers. Uses [Application Load Balancer](https://docs.aws.amazon.com/elasticloadbalancing/latest/application/introduction.html) for load balancing and [AWS Fargate](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/AWS_Fargate.html) for containers."
|
|
7218
|
-
},
|
|
7219
|
-
"fqn": "cdk-nextjs.NextjsRegionalContainers",
|
|
7220
|
-
"initializer": {
|
|
7221
|
-
"docs": {
|
|
7222
|
-
"stability": "stable"
|
|
7223
|
-
},
|
|
7224
|
-
"locationInModule": {
|
|
7225
|
-
"filename": "src/root-constructs/nextjs-regional-containers.ts",
|
|
7226
|
-
"line": 51
|
|
7227
|
-
},
|
|
7228
|
-
"parameters": [
|
|
7229
|
-
{
|
|
7230
|
-
"name": "scope",
|
|
7231
|
-
"type": {
|
|
7232
|
-
"fqn": "constructs.Construct"
|
|
7233
|
-
}
|
|
7234
|
-
},
|
|
7235
|
-
{
|
|
7236
|
-
"name": "id",
|
|
7237
|
-
"type": {
|
|
7238
|
-
"primitive": "string"
|
|
7239
|
-
}
|
|
7240
|
-
},
|
|
7241
|
-
{
|
|
7242
|
-
"name": "props",
|
|
7243
|
-
"type": {
|
|
7244
|
-
"fqn": "cdk-nextjs.NextjsRegionalContainersProps"
|
|
7245
|
-
}
|
|
7246
|
-
}
|
|
7247
|
-
]
|
|
7271
|
+
"stability": "stable"
|
|
7248
7272
|
},
|
|
7249
|
-
"
|
|
7273
|
+
"fqn": "cdk-nextjs.NextjsPostDeployProps",
|
|
7274
|
+
"kind": "interface",
|
|
7250
7275
|
"locationInModule": {
|
|
7251
|
-
"filename": "src/
|
|
7252
|
-
"line":
|
|
7276
|
+
"filename": "src/nextjs-post-deploy.ts",
|
|
7277
|
+
"line": 33
|
|
7253
7278
|
},
|
|
7254
|
-
"name": "
|
|
7279
|
+
"name": "NextjsPostDeployProps",
|
|
7255
7280
|
"properties": [
|
|
7256
7281
|
{
|
|
7282
|
+
"abstract": true,
|
|
7257
7283
|
"docs": {
|
|
7258
7284
|
"stability": "stable"
|
|
7259
7285
|
},
|
|
7286
|
+
"immutable": true,
|
|
7260
7287
|
"locationInModule": {
|
|
7261
|
-
"filename": "src/
|
|
7262
|
-
"line":
|
|
7288
|
+
"filename": "src/nextjs-post-deploy.ts",
|
|
7289
|
+
"line": 34
|
|
7263
7290
|
},
|
|
7264
|
-
"name": "
|
|
7291
|
+
"name": "accessPoint",
|
|
7265
7292
|
"type": {
|
|
7266
|
-
"fqn": "cdk-
|
|
7293
|
+
"fqn": "aws-cdk-lib.aws_efs.AccessPoint"
|
|
7267
7294
|
}
|
|
7268
7295
|
},
|
|
7269
7296
|
{
|
|
7297
|
+
"abstract": true,
|
|
7270
7298
|
"docs": {
|
|
7271
7299
|
"stability": "stable"
|
|
7272
7300
|
},
|
|
7301
|
+
"immutable": true,
|
|
7273
7302
|
"locationInModule": {
|
|
7274
|
-
"filename": "src/
|
|
7275
|
-
"line":
|
|
7303
|
+
"filename": "src/nextjs-post-deploy.ts",
|
|
7304
|
+
"line": 35
|
|
7276
7305
|
},
|
|
7277
|
-
"name": "
|
|
7306
|
+
"name": "buildId",
|
|
7278
7307
|
"type": {
|
|
7279
|
-
"
|
|
7308
|
+
"primitive": "string"
|
|
7280
7309
|
}
|
|
7281
7310
|
},
|
|
7282
7311
|
{
|
|
7312
|
+
"abstract": true,
|
|
7283
7313
|
"docs": {
|
|
7314
|
+
"see": "{@link NextjsBuild.buildImageDigest }",
|
|
7284
7315
|
"stability": "stable"
|
|
7285
7316
|
},
|
|
7317
|
+
"immutable": true,
|
|
7286
7318
|
"locationInModule": {
|
|
7287
|
-
"filename": "src/
|
|
7288
|
-
"line":
|
|
7319
|
+
"filename": "src/nextjs-post-deploy.ts",
|
|
7320
|
+
"line": 39
|
|
7289
7321
|
},
|
|
7290
|
-
"name": "
|
|
7322
|
+
"name": "buildImageDigest",
|
|
7291
7323
|
"type": {
|
|
7292
|
-
"
|
|
7324
|
+
"primitive": "string"
|
|
7293
7325
|
}
|
|
7294
7326
|
},
|
|
7295
7327
|
{
|
|
7328
|
+
"abstract": true,
|
|
7296
7329
|
"docs": {
|
|
7297
7330
|
"stability": "stable"
|
|
7298
7331
|
},
|
|
7332
|
+
"immutable": true,
|
|
7299
7333
|
"locationInModule": {
|
|
7300
|
-
"filename": "src/
|
|
7301
|
-
"line":
|
|
7334
|
+
"filename": "src/nextjs-post-deploy.ts",
|
|
7335
|
+
"line": 61
|
|
7302
7336
|
},
|
|
7303
|
-
"name": "
|
|
7337
|
+
"name": "vpc",
|
|
7304
7338
|
"type": {
|
|
7305
|
-
"fqn": "cdk-
|
|
7339
|
+
"fqn": "aws-cdk-lib.aws_ec2.IVpc"
|
|
7306
7340
|
}
|
|
7307
7341
|
},
|
|
7308
7342
|
{
|
|
7343
|
+
"abstract": true,
|
|
7309
7344
|
"docs": {
|
|
7310
|
-
"
|
|
7345
|
+
"default": "true",
|
|
7346
|
+
"stability": "stable",
|
|
7347
|
+
"summary": "If true, logs details in custom resource lambda."
|
|
7311
7348
|
},
|
|
7349
|
+
"immutable": true,
|
|
7312
7350
|
"locationInModule": {
|
|
7313
|
-
"filename": "src/
|
|
7314
|
-
"line":
|
|
7351
|
+
"filename": "src/nextjs-post-deploy.ts",
|
|
7352
|
+
"line": 44
|
|
7315
7353
|
},
|
|
7316
|
-
"name": "
|
|
7354
|
+
"name": "debug",
|
|
7355
|
+
"optional": true,
|
|
7317
7356
|
"type": {
|
|
7318
|
-
"
|
|
7357
|
+
"primitive": "boolean"
|
|
7319
7358
|
}
|
|
7320
|
-
}
|
|
7321
|
-
],
|
|
7322
|
-
"symbolId": "src/root-constructs/nextjs-regional-containers:NextjsRegionalContainers"
|
|
7323
|
-
},
|
|
7324
|
-
"cdk-nextjs.NextjsRegionalContainersConstructOverrides": {
|
|
7325
|
-
"assembly": "cdk-nextjs",
|
|
7326
|
-
"datatype": true,
|
|
7327
|
-
"docs": {
|
|
7328
|
-
"stability": "stable"
|
|
7329
|
-
},
|
|
7330
|
-
"fqn": "cdk-nextjs.NextjsRegionalContainersConstructOverrides",
|
|
7331
|
-
"interfaces": [
|
|
7332
|
-
"cdk-nextjs.BaseNextjsConstructOverrides"
|
|
7333
|
-
],
|
|
7334
|
-
"kind": "interface",
|
|
7335
|
-
"locationInModule": {
|
|
7336
|
-
"filename": "src/root-constructs/nextjs-regional-containers.ts",
|
|
7337
|
-
"line": 18
|
|
7338
|
-
},
|
|
7339
|
-
"name": "NextjsRegionalContainersConstructOverrides",
|
|
7340
|
-
"properties": [
|
|
7359
|
+
},
|
|
7341
7360
|
{
|
|
7342
7361
|
"abstract": true,
|
|
7343
7362
|
"docs": {
|
|
7344
|
-
"stability": "stable"
|
|
7363
|
+
"stability": "stable",
|
|
7364
|
+
"summary": "CloudFront Distribution to invalidate."
|
|
7345
7365
|
},
|
|
7346
7366
|
"immutable": true,
|
|
7347
7367
|
"locationInModule": {
|
|
7348
|
-
"filename": "src/
|
|
7349
|
-
"line":
|
|
7368
|
+
"filename": "src/nextjs-post-deploy.ts",
|
|
7369
|
+
"line": 48
|
|
7350
7370
|
},
|
|
7351
|
-
"name": "
|
|
7371
|
+
"name": "distribution",
|
|
7352
7372
|
"optional": true,
|
|
7353
7373
|
"type": {
|
|
7354
|
-
"fqn": "cdk-
|
|
7374
|
+
"fqn": "aws-cdk-lib.aws_cloudfront.IDistribution"
|
|
7355
7375
|
}
|
|
7356
|
-
}
|
|
7357
|
-
],
|
|
7358
|
-
"symbolId": "src/root-constructs/nextjs-regional-containers:NextjsRegionalContainersConstructOverrides"
|
|
7359
|
-
},
|
|
7360
|
-
"cdk-nextjs.NextjsRegionalContainersOverrides": {
|
|
7361
|
-
"assembly": "cdk-nextjs",
|
|
7362
|
-
"datatype": true,
|
|
7363
|
-
"docs": {
|
|
7364
|
-
"stability": "stable"
|
|
7365
|
-
},
|
|
7366
|
-
"fqn": "cdk-nextjs.NextjsRegionalContainersOverrides",
|
|
7367
|
-
"interfaces": [
|
|
7368
|
-
"cdk-nextjs.BaseNextjsOverrides"
|
|
7369
|
-
],
|
|
7370
|
-
"kind": "interface",
|
|
7371
|
-
"locationInModule": {
|
|
7372
|
-
"filename": "src/root-constructs/nextjs-regional-containers.ts",
|
|
7373
|
-
"line": 23
|
|
7374
|
-
},
|
|
7375
|
-
"name": "NextjsRegionalContainersOverrides",
|
|
7376
|
-
"properties": [
|
|
7376
|
+
},
|
|
7377
7377
|
{
|
|
7378
7378
|
"abstract": true,
|
|
7379
7379
|
"docs": {
|
|
7380
|
-
"stability": "stable"
|
|
7380
|
+
"stability": "stable",
|
|
7381
|
+
"summary": "Override props for every construct."
|
|
7381
7382
|
},
|
|
7382
7383
|
"immutable": true,
|
|
7383
7384
|
"locationInModule": {
|
|
7384
|
-
"filename": "src/
|
|
7385
|
-
"line":
|
|
7385
|
+
"filename": "src/nextjs-post-deploy.ts",
|
|
7386
|
+
"line": 52
|
|
7386
7387
|
},
|
|
7387
|
-
"name": "
|
|
7388
|
+
"name": "overrides",
|
|
7388
7389
|
"optional": true,
|
|
7389
7390
|
"type": {
|
|
7390
|
-
"fqn": "cdk-nextjs.
|
|
7391
|
+
"fqn": "cdk-nextjs.NextjsPostDeployOverrides"
|
|
7391
7392
|
}
|
|
7392
7393
|
},
|
|
7393
7394
|
{
|
|
7394
7395
|
"abstract": true,
|
|
7395
7396
|
"docs": {
|
|
7397
|
+
"see": "{@link NextjsBaseProps.relativePathToPackage }",
|
|
7396
7398
|
"stability": "stable"
|
|
7397
7399
|
},
|
|
7398
7400
|
"immutable": true,
|
|
7399
7401
|
"locationInModule": {
|
|
7400
|
-
"filename": "src/
|
|
7401
|
-
"line":
|
|
7402
|
+
"filename": "src/nextjs-post-deploy.ts",
|
|
7403
|
+
"line": 56
|
|
7402
7404
|
},
|
|
7403
|
-
"name": "
|
|
7405
|
+
"name": "relativePathToPackage",
|
|
7404
7406
|
"optional": true,
|
|
7405
7407
|
"type": {
|
|
7406
|
-
"
|
|
7408
|
+
"primitive": "string"
|
|
7407
7409
|
}
|
|
7408
|
-
}
|
|
7409
|
-
],
|
|
7410
|
-
"symbolId": "src/root-constructs/nextjs-regional-containers:NextjsRegionalContainersOverrides"
|
|
7411
|
-
},
|
|
7412
|
-
"cdk-nextjs.NextjsRegionalContainersProps": {
|
|
7413
|
-
"assembly": "cdk-nextjs",
|
|
7414
|
-
"datatype": true,
|
|
7415
|
-
"docs": {
|
|
7416
|
-
"stability": "stable"
|
|
7417
|
-
},
|
|
7418
|
-
"fqn": "cdk-nextjs.NextjsRegionalContainersProps",
|
|
7419
|
-
"interfaces": [
|
|
7420
|
-
"cdk-nextjs.NextjsBaseProps"
|
|
7421
|
-
],
|
|
7422
|
-
"kind": "interface",
|
|
7423
|
-
"locationInModule": {
|
|
7424
|
-
"filename": "src/root-constructs/nextjs-regional-containers.ts",
|
|
7425
|
-
"line": 28
|
|
7426
|
-
},
|
|
7427
|
-
"name": "NextjsRegionalContainersProps",
|
|
7428
|
-
"properties": [
|
|
7410
|
+
},
|
|
7429
7411
|
{
|
|
7430
7412
|
"abstract": true,
|
|
7431
7413
|
"docs": {
|
|
7432
7414
|
"stability": "stable",
|
|
7433
|
-
"summary": "
|
|
7415
|
+
"summary": "Required for `NextjsType.GlobalFunctions` and `NextjsType.GlobalContainers`."
|
|
7434
7416
|
},
|
|
7435
7417
|
"immutable": true,
|
|
7436
7418
|
"locationInModule": {
|
|
7437
|
-
"filename": "src/
|
|
7438
|
-
"line":
|
|
7419
|
+
"filename": "src/nextjs-post-deploy.ts",
|
|
7420
|
+
"line": 60
|
|
7439
7421
|
},
|
|
7440
|
-
"name": "
|
|
7422
|
+
"name": "staticAssetsBucket",
|
|
7441
7423
|
"optional": true,
|
|
7442
7424
|
"type": {
|
|
7443
|
-
"fqn": "cdk-
|
|
7425
|
+
"fqn": "aws-cdk-lib.aws_s3.Bucket"
|
|
7444
7426
|
}
|
|
7445
7427
|
}
|
|
7446
7428
|
],
|
|
7447
|
-
"symbolId": "src/
|
|
7429
|
+
"symbolId": "src/nextjs-post-deploy:NextjsPostDeployProps"
|
|
7448
7430
|
},
|
|
7449
|
-
"cdk-nextjs.
|
|
7431
|
+
"cdk-nextjs.NextjsRegionalContainers": {
|
|
7450
7432
|
"assembly": "cdk-nextjs",
|
|
7451
7433
|
"base": "constructs.Construct",
|
|
7452
7434
|
"docs": {
|
|
7453
7435
|
"stability": "stable",
|
|
7454
|
-
"summary": "[
|
|
7436
|
+
"summary": "Deploy Next.js load balanced with containers. Uses [Application Load Balancer](https://docs.aws.amazon.com/elasticloadbalancing/latest/application/introduction.html) for load balancing and [AWS Fargate](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/AWS_Fargate.html) for containers."
|
|
7455
7437
|
},
|
|
7456
|
-
"fqn": "cdk-nextjs.
|
|
7438
|
+
"fqn": "cdk-nextjs.NextjsRegionalContainers",
|
|
7457
7439
|
"initializer": {
|
|
7458
7440
|
"docs": {
|
|
7459
7441
|
"stability": "stable"
|
|
7460
7442
|
},
|
|
7461
7443
|
"locationInModule": {
|
|
7462
|
-
"filename": "src/nextjs-
|
|
7463
|
-
"line":
|
|
7444
|
+
"filename": "src/root-constructs/nextjs-regional-containers.ts",
|
|
7445
|
+
"line": 59
|
|
7464
7446
|
},
|
|
7465
7447
|
"parameters": [
|
|
7466
7448
|
{
|
|
@@ -7469,38 +7451,90 @@
|
|
|
7469
7451
|
"fqn": "constructs.Construct"
|
|
7470
7452
|
}
|
|
7471
7453
|
},
|
|
7472
|
-
{
|
|
7473
|
-
"name": "id",
|
|
7474
|
-
"type": {
|
|
7475
|
-
"primitive": "string"
|
|
7476
|
-
}
|
|
7454
|
+
{
|
|
7455
|
+
"name": "id",
|
|
7456
|
+
"type": {
|
|
7457
|
+
"primitive": "string"
|
|
7458
|
+
}
|
|
7459
|
+
},
|
|
7460
|
+
{
|
|
7461
|
+
"name": "props",
|
|
7462
|
+
"type": {
|
|
7463
|
+
"fqn": "cdk-nextjs.NextjsRegionalContainersProps"
|
|
7464
|
+
}
|
|
7465
|
+
}
|
|
7466
|
+
]
|
|
7467
|
+
},
|
|
7468
|
+
"kind": "class",
|
|
7469
|
+
"locationInModule": {
|
|
7470
|
+
"filename": "src/root-constructs/nextjs-regional-containers.ts",
|
|
7471
|
+
"line": 48
|
|
7472
|
+
},
|
|
7473
|
+
"name": "NextjsRegionalContainers",
|
|
7474
|
+
"properties": [
|
|
7475
|
+
{
|
|
7476
|
+
"docs": {
|
|
7477
|
+
"stability": "stable"
|
|
7478
|
+
},
|
|
7479
|
+
"locationInModule": {
|
|
7480
|
+
"filename": "src/root-constructs/nextjs-regional-containers.ts",
|
|
7481
|
+
"line": 52
|
|
7482
|
+
},
|
|
7483
|
+
"name": "nextjsAssetsDeployment",
|
|
7484
|
+
"type": {
|
|
7485
|
+
"fqn": "cdk-nextjs.NextjsAssetsDeployment"
|
|
7486
|
+
}
|
|
7487
|
+
},
|
|
7488
|
+
{
|
|
7489
|
+
"docs": {
|
|
7490
|
+
"stability": "stable"
|
|
7491
|
+
},
|
|
7492
|
+
"locationInModule": {
|
|
7493
|
+
"filename": "src/root-constructs/nextjs-regional-containers.ts",
|
|
7494
|
+
"line": 49
|
|
7495
|
+
},
|
|
7496
|
+
"name": "nextjsBuild",
|
|
7497
|
+
"type": {
|
|
7498
|
+
"fqn": "cdk-nextjs.NextjsBuild"
|
|
7499
|
+
}
|
|
7500
|
+
},
|
|
7501
|
+
{
|
|
7502
|
+
"docs": {
|
|
7503
|
+
"stability": "stable"
|
|
7504
|
+
},
|
|
7505
|
+
"locationInModule": {
|
|
7506
|
+
"filename": "src/root-constructs/nextjs-regional-containers.ts",
|
|
7507
|
+
"line": 53
|
|
7508
|
+
},
|
|
7509
|
+
"name": "nextjsContainers",
|
|
7510
|
+
"type": {
|
|
7511
|
+
"fqn": "cdk-nextjs.NextjsContainers"
|
|
7512
|
+
}
|
|
7513
|
+
},
|
|
7514
|
+
{
|
|
7515
|
+
"docs": {
|
|
7516
|
+
"stability": "stable"
|
|
7517
|
+
},
|
|
7518
|
+
"locationInModule": {
|
|
7519
|
+
"filename": "src/root-constructs/nextjs-regional-containers.ts",
|
|
7520
|
+
"line": 51
|
|
7477
7521
|
},
|
|
7478
|
-
|
|
7479
|
-
|
|
7480
|
-
"
|
|
7481
|
-
"fqn": "cdk-nextjs.NextjsRevalidationProps"
|
|
7482
|
-
}
|
|
7522
|
+
"name": "nextjsFileSystem",
|
|
7523
|
+
"type": {
|
|
7524
|
+
"fqn": "cdk-nextjs.NextjsFileSystem"
|
|
7483
7525
|
}
|
|
7484
|
-
|
|
7485
|
-
},
|
|
7486
|
-
"kind": "class",
|
|
7487
|
-
"locationInModule": {
|
|
7488
|
-
"filename": "src/nextjs-revalidation.ts",
|
|
7489
|
-
"line": 32
|
|
7490
|
-
},
|
|
7491
|
-
"name": "NextjsRevalidation",
|
|
7492
|
-
"properties": [
|
|
7526
|
+
},
|
|
7493
7527
|
{
|
|
7494
7528
|
"docs": {
|
|
7495
7529
|
"stability": "stable"
|
|
7496
7530
|
},
|
|
7497
7531
|
"locationInModule": {
|
|
7498
|
-
"filename": "src/nextjs-
|
|
7499
|
-
"line":
|
|
7532
|
+
"filename": "src/root-constructs/nextjs-regional-containers.ts",
|
|
7533
|
+
"line": 54
|
|
7500
7534
|
},
|
|
7501
|
-
"name": "
|
|
7535
|
+
"name": "nextjsPostDeploy",
|
|
7502
7536
|
"type": {
|
|
7503
|
-
"fqn": "
|
|
7537
|
+
"fqn": "cdk-nextjs.NextjsPostDeploy"
|
|
7504
7538
|
}
|
|
7505
7539
|
},
|
|
7506
7540
|
{
|
|
@@ -7508,30 +7542,33 @@
|
|
|
7508
7542
|
"stability": "stable"
|
|
7509
7543
|
},
|
|
7510
7544
|
"locationInModule": {
|
|
7511
|
-
"filename": "src/nextjs-
|
|
7512
|
-
"line":
|
|
7545
|
+
"filename": "src/root-constructs/nextjs-regional-containers.ts",
|
|
7546
|
+
"line": 50
|
|
7513
7547
|
},
|
|
7514
|
-
"name": "
|
|
7548
|
+
"name": "nextjsVpc",
|
|
7515
7549
|
"type": {
|
|
7516
|
-
"fqn": "
|
|
7550
|
+
"fqn": "cdk-nextjs.NextjsVpc"
|
|
7517
7551
|
}
|
|
7518
7552
|
}
|
|
7519
7553
|
],
|
|
7520
|
-
"symbolId": "src/nextjs-
|
|
7554
|
+
"symbolId": "src/root-constructs/nextjs-regional-containers:NextjsRegionalContainers"
|
|
7521
7555
|
},
|
|
7522
|
-
"cdk-nextjs.
|
|
7556
|
+
"cdk-nextjs.NextjsRegionalContainersConstructOverrides": {
|
|
7523
7557
|
"assembly": "cdk-nextjs",
|
|
7524
7558
|
"datatype": true,
|
|
7525
7559
|
"docs": {
|
|
7526
7560
|
"stability": "stable"
|
|
7527
7561
|
},
|
|
7528
|
-
"fqn": "cdk-nextjs.
|
|
7562
|
+
"fqn": "cdk-nextjs.NextjsRegionalContainersConstructOverrides",
|
|
7563
|
+
"interfaces": [
|
|
7564
|
+
"cdk-nextjs.BaseNextjsConstructOverrides"
|
|
7565
|
+
],
|
|
7529
7566
|
"kind": "interface",
|
|
7530
7567
|
"locationInModule": {
|
|
7531
|
-
"filename": "src/nextjs-
|
|
7532
|
-
"line":
|
|
7568
|
+
"filename": "src/root-constructs/nextjs-regional-containers.ts",
|
|
7569
|
+
"line": 20
|
|
7533
7570
|
},
|
|
7534
|
-
"name": "
|
|
7571
|
+
"name": "NextjsRegionalContainersConstructOverrides",
|
|
7535
7572
|
"properties": [
|
|
7536
7573
|
{
|
|
7537
7574
|
"abstract": true,
|
|
@@ -7540,15 +7577,37 @@
|
|
|
7540
7577
|
},
|
|
7541
7578
|
"immutable": true,
|
|
7542
7579
|
"locationInModule": {
|
|
7543
|
-
"filename": "src/nextjs-
|
|
7544
|
-
"line":
|
|
7580
|
+
"filename": "src/root-constructs/nextjs-regional-containers.ts",
|
|
7581
|
+
"line": 22
|
|
7545
7582
|
},
|
|
7546
|
-
"name": "
|
|
7583
|
+
"name": "nextjsContainerProps",
|
|
7547
7584
|
"optional": true,
|
|
7548
7585
|
"type": {
|
|
7549
|
-
"fqn": "cdk-nextjs.
|
|
7586
|
+
"fqn": "cdk-nextjs.OptionalNextjsContainersProps"
|
|
7550
7587
|
}
|
|
7551
|
-
}
|
|
7588
|
+
}
|
|
7589
|
+
],
|
|
7590
|
+
"symbolId": "src/root-constructs/nextjs-regional-containers:NextjsRegionalContainersConstructOverrides"
|
|
7591
|
+
},
|
|
7592
|
+
"cdk-nextjs.NextjsRegionalContainersOverrides": {
|
|
7593
|
+
"assembly": "cdk-nextjs",
|
|
7594
|
+
"datatype": true,
|
|
7595
|
+
"docs": {
|
|
7596
|
+
"remarks": "Overrides are lower level than\nprops and are passed directly to CDK Constructs giving you more control. It's\nrecommended to use caution and review source code so you know how they're used.",
|
|
7597
|
+
"stability": "stable",
|
|
7598
|
+
"summary": "Overrides for `NextjsRegionalContainers`."
|
|
7599
|
+
},
|
|
7600
|
+
"fqn": "cdk-nextjs.NextjsRegionalContainersOverrides",
|
|
7601
|
+
"interfaces": [
|
|
7602
|
+
"cdk-nextjs.BaseNextjsOverrides"
|
|
7603
|
+
],
|
|
7604
|
+
"kind": "interface",
|
|
7605
|
+
"locationInModule": {
|
|
7606
|
+
"filename": "src/root-constructs/nextjs-regional-containers.ts",
|
|
7607
|
+
"line": 30
|
|
7608
|
+
},
|
|
7609
|
+
"name": "NextjsRegionalContainersOverrides",
|
|
7610
|
+
"properties": [
|
|
7552
7611
|
{
|
|
7553
7612
|
"abstract": true,
|
|
7554
7613
|
"docs": {
|
|
@@ -7556,13 +7615,13 @@
|
|
|
7556
7615
|
},
|
|
7557
7616
|
"immutable": true,
|
|
7558
7617
|
"locationInModule": {
|
|
7559
|
-
"filename": "src/nextjs-
|
|
7560
|
-
"line":
|
|
7618
|
+
"filename": "src/root-constructs/nextjs-regional-containers.ts",
|
|
7619
|
+
"line": 32
|
|
7561
7620
|
},
|
|
7562
|
-
"name": "
|
|
7621
|
+
"name": "nextjsContainers",
|
|
7563
7622
|
"optional": true,
|
|
7564
7623
|
"type": {
|
|
7565
|
-
"fqn": "
|
|
7624
|
+
"fqn": "cdk-nextjs.NextjsContainersOverrides"
|
|
7566
7625
|
}
|
|
7567
7626
|
},
|
|
7568
7627
|
{
|
|
@@ -7572,80 +7631,54 @@
|
|
|
7572
7631
|
},
|
|
7573
7632
|
"immutable": true,
|
|
7574
7633
|
"locationInModule": {
|
|
7575
|
-
"filename": "src/nextjs-
|
|
7576
|
-
"line":
|
|
7634
|
+
"filename": "src/root-constructs/nextjs-regional-containers.ts",
|
|
7635
|
+
"line": 31
|
|
7577
7636
|
},
|
|
7578
|
-
"name": "
|
|
7637
|
+
"name": "nextjsRegionalContainers",
|
|
7579
7638
|
"optional": true,
|
|
7580
7639
|
"type": {
|
|
7581
|
-
"fqn": "
|
|
7640
|
+
"fqn": "cdk-nextjs.NextjsRegionalContainersConstructOverrides"
|
|
7582
7641
|
}
|
|
7583
7642
|
}
|
|
7584
7643
|
],
|
|
7585
|
-
"symbolId": "src/nextjs-
|
|
7644
|
+
"symbolId": "src/root-constructs/nextjs-regional-containers:NextjsRegionalContainersOverrides"
|
|
7586
7645
|
},
|
|
7587
|
-
"cdk-nextjs.
|
|
7646
|
+
"cdk-nextjs.NextjsRegionalContainersProps": {
|
|
7588
7647
|
"assembly": "cdk-nextjs",
|
|
7589
7648
|
"datatype": true,
|
|
7590
7649
|
"docs": {
|
|
7591
7650
|
"stability": "stable"
|
|
7592
7651
|
},
|
|
7593
|
-
"fqn": "cdk-nextjs.
|
|
7652
|
+
"fqn": "cdk-nextjs.NextjsRegionalContainersProps",
|
|
7653
|
+
"interfaces": [
|
|
7654
|
+
"cdk-nextjs.NextjsBaseProps"
|
|
7655
|
+
],
|
|
7594
7656
|
"kind": "interface",
|
|
7595
7657
|
"locationInModule": {
|
|
7596
|
-
"filename": "src/nextjs-
|
|
7597
|
-
"line":
|
|
7658
|
+
"filename": "src/root-constructs/nextjs-regional-containers.ts",
|
|
7659
|
+
"line": 35
|
|
7598
7660
|
},
|
|
7599
|
-
"name": "
|
|
7661
|
+
"name": "NextjsRegionalContainersProps",
|
|
7600
7662
|
"properties": [
|
|
7601
7663
|
{
|
|
7602
7664
|
"abstract": true,
|
|
7603
7665
|
"docs": {
|
|
7604
|
-
"stability": "stable"
|
|
7605
|
-
|
|
7606
|
-
"immutable": true,
|
|
7607
|
-
"locationInModule": {
|
|
7608
|
-
"filename": "src/nextjs-revalidation.ts",
|
|
7609
|
-
"line": 20
|
|
7610
|
-
},
|
|
7611
|
-
"name": "fn",
|
|
7612
|
-
"type": {
|
|
7613
|
-
"fqn": "aws-cdk-lib.aws_lambda.Function"
|
|
7614
|
-
}
|
|
7615
|
-
},
|
|
7616
|
-
{
|
|
7617
|
-
"abstract": true,
|
|
7618
|
-
"docs": {
|
|
7619
|
-
"stability": "stable"
|
|
7620
|
-
},
|
|
7621
|
-
"immutable": true,
|
|
7622
|
-
"locationInModule": {
|
|
7623
|
-
"filename": "src/nextjs-revalidation.ts",
|
|
7624
|
-
"line": 22
|
|
7625
|
-
},
|
|
7626
|
-
"name": "previewModeId",
|
|
7627
|
-
"type": {
|
|
7628
|
-
"primitive": "string"
|
|
7629
|
-
}
|
|
7630
|
-
},
|
|
7631
|
-
{
|
|
7632
|
-
"abstract": true,
|
|
7633
|
-
"docs": {
|
|
7634
|
-
"stability": "stable"
|
|
7666
|
+
"stability": "stable",
|
|
7667
|
+
"summary": "Override props of any construct."
|
|
7635
7668
|
},
|
|
7636
7669
|
"immutable": true,
|
|
7637
7670
|
"locationInModule": {
|
|
7638
|
-
"filename": "src/nextjs-
|
|
7639
|
-
"line":
|
|
7671
|
+
"filename": "src/root-constructs/nextjs-regional-containers.ts",
|
|
7672
|
+
"line": 39
|
|
7640
7673
|
},
|
|
7641
7674
|
"name": "overrides",
|
|
7642
7675
|
"optional": true,
|
|
7643
7676
|
"type": {
|
|
7644
|
-
"fqn": "cdk-nextjs.
|
|
7677
|
+
"fqn": "cdk-nextjs.NextjsRegionalContainersOverrides"
|
|
7645
7678
|
}
|
|
7646
7679
|
}
|
|
7647
7680
|
],
|
|
7648
|
-
"symbolId": "src/nextjs-
|
|
7681
|
+
"symbolId": "src/root-constructs/nextjs-regional-containers:NextjsRegionalContainersProps"
|
|
7649
7682
|
},
|
|
7650
7683
|
"cdk-nextjs.NextjsStaticAssets": {
|
|
7651
7684
|
"assembly": "cdk-nextjs",
|
|
@@ -7798,7 +7831,7 @@
|
|
|
7798
7831
|
"fqn": "cdk-nextjs.NextjsType",
|
|
7799
7832
|
"kind": "enum",
|
|
7800
7833
|
"locationInModule": {
|
|
7801
|
-
"filename": "src/
|
|
7834
|
+
"filename": "src/constants.ts",
|
|
7802
7835
|
"line": 1
|
|
7803
7836
|
},
|
|
7804
7837
|
"members": [
|
|
@@ -7822,7 +7855,7 @@
|
|
|
7822
7855
|
}
|
|
7823
7856
|
],
|
|
7824
7857
|
"name": "NextjsType",
|
|
7825
|
-
"symbolId": "src/
|
|
7858
|
+
"symbolId": "src/constants:NextjsType"
|
|
7826
7859
|
},
|
|
7827
7860
|
"cdk-nextjs.NextjsVpc": {
|
|
7828
7861
|
"assembly": "cdk-nextjs",
|
|
@@ -8574,6 +8607,140 @@
|
|
|
8574
8607
|
],
|
|
8575
8608
|
"symbolId": "src/generated-structs/OptionalClusterProps:OptionalClusterProps"
|
|
8576
8609
|
},
|
|
8610
|
+
"cdk-nextjs.OptionalCustomResourceProps": {
|
|
8611
|
+
"assembly": "cdk-nextjs",
|
|
8612
|
+
"datatype": true,
|
|
8613
|
+
"docs": {
|
|
8614
|
+
"stability": "stable",
|
|
8615
|
+
"summary": "OptionalCustomResourceProps."
|
|
8616
|
+
},
|
|
8617
|
+
"fqn": "cdk-nextjs.OptionalCustomResourceProps",
|
|
8618
|
+
"kind": "interface",
|
|
8619
|
+
"locationInModule": {
|
|
8620
|
+
"filename": "src/generated-structs/OptionalCustomResourceProps.ts",
|
|
8621
|
+
"line": 7
|
|
8622
|
+
},
|
|
8623
|
+
"name": "OptionalCustomResourceProps",
|
|
8624
|
+
"properties": [
|
|
8625
|
+
{
|
|
8626
|
+
"abstract": true,
|
|
8627
|
+
"docs": {
|
|
8628
|
+
"default": "false",
|
|
8629
|
+
"stability": "stable",
|
|
8630
|
+
"summary": "Convert all property keys to pascal case."
|
|
8631
|
+
},
|
|
8632
|
+
"immutable": true,
|
|
8633
|
+
"locationInModule": {
|
|
8634
|
+
"filename": "src/generated-structs/OptionalCustomResourceProps.ts",
|
|
8635
|
+
"line": 57
|
|
8636
|
+
},
|
|
8637
|
+
"name": "pascalCaseProperties",
|
|
8638
|
+
"optional": true,
|
|
8639
|
+
"type": {
|
|
8640
|
+
"primitive": "boolean"
|
|
8641
|
+
}
|
|
8642
|
+
},
|
|
8643
|
+
{
|
|
8644
|
+
"abstract": true,
|
|
8645
|
+
"docs": {
|
|
8646
|
+
"default": "- No properties.",
|
|
8647
|
+
"remarks": "Values in this `properties` dictionary can possibly overwrite other values in `CustomResourceProps`\nE.g. `ServiceToken` and `ServiceTimeout`\nIt is recommended to avoid using same keys that exist in `CustomResourceProps`",
|
|
8648
|
+
"stability": "stable",
|
|
8649
|
+
"summary": "Properties to pass to the Lambda."
|
|
8650
|
+
},
|
|
8651
|
+
"immutable": true,
|
|
8652
|
+
"locationInModule": {
|
|
8653
|
+
"filename": "src/generated-structs/OptionalCustomResourceProps.ts",
|
|
8654
|
+
"line": 51
|
|
8655
|
+
},
|
|
8656
|
+
"name": "properties",
|
|
8657
|
+
"optional": true,
|
|
8658
|
+
"type": {
|
|
8659
|
+
"collection": {
|
|
8660
|
+
"elementtype": {
|
|
8661
|
+
"primitive": "any"
|
|
8662
|
+
},
|
|
8663
|
+
"kind": "map"
|
|
8664
|
+
}
|
|
8665
|
+
}
|
|
8666
|
+
},
|
|
8667
|
+
{
|
|
8668
|
+
"abstract": true,
|
|
8669
|
+
"docs": {
|
|
8670
|
+
"default": "cdk.RemovalPolicy.Destroy",
|
|
8671
|
+
"stability": "stable",
|
|
8672
|
+
"summary": "The policy to apply when this resource is removed from the application."
|
|
8673
|
+
},
|
|
8674
|
+
"immutable": true,
|
|
8675
|
+
"locationInModule": {
|
|
8676
|
+
"filename": "src/generated-structs/OptionalCustomResourceProps.ts",
|
|
8677
|
+
"line": 42
|
|
8678
|
+
},
|
|
8679
|
+
"name": "removalPolicy",
|
|
8680
|
+
"optional": true,
|
|
8681
|
+
"type": {
|
|
8682
|
+
"fqn": "aws-cdk-lib.RemovalPolicy"
|
|
8683
|
+
}
|
|
8684
|
+
},
|
|
8685
|
+
{
|
|
8686
|
+
"abstract": true,
|
|
8687
|
+
"docs": {
|
|
8688
|
+
"default": "- AWS::CloudFormation::CustomResource",
|
|
8689
|
+
"remarks": "For example, you can use \"Custom::MyCustomResourceTypeName\".\n\nCustom resource type names must begin with \"Custom::\" and can include\nalphanumeric characters and the following characters: _@-. You can specify\na custom resource type name up to a maximum length of 60 characters. You\ncannot change the type during an update.\n\nUsing your own resource type names helps you quickly differentiate the\ntypes of custom resources in your stack. For example, if you had two custom\nresources that conduct two different ping tests, you could name their type\nas Custom::PingTester to make them easily identifiable as ping testers\n(instead of using AWS::CloudFormation::CustomResource).",
|
|
8690
|
+
"stability": "stable",
|
|
8691
|
+
"summary": "For custom resources, you can specify AWS::CloudFormation::CustomResource (the default) as the resource type, or you can specify your own resource type name."
|
|
8692
|
+
},
|
|
8693
|
+
"immutable": true,
|
|
8694
|
+
"locationInModule": {
|
|
8695
|
+
"filename": "src/generated-structs/OptionalCustomResourceProps.ts",
|
|
8696
|
+
"line": 36
|
|
8697
|
+
},
|
|
8698
|
+
"name": "resourceType",
|
|
8699
|
+
"optional": true,
|
|
8700
|
+
"type": {
|
|
8701
|
+
"primitive": "string"
|
|
8702
|
+
}
|
|
8703
|
+
},
|
|
8704
|
+
{
|
|
8705
|
+
"abstract": true,
|
|
8706
|
+
"docs": {
|
|
8707
|
+
"default": "Duration.seconds(3600)",
|
|
8708
|
+
"remarks": "The value must be between 1 second and 3600 seconds.\n\nMaps to [ServiceTimeout](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudformation-customresource.html#cfn-cloudformation-customresource-servicetimeout) property for the `AWS::CloudFormation::CustomResource` resource\n\nA token can be specified for this property, but it must be specified with `Duration.seconds()`.",
|
|
8709
|
+
"stability": "stable",
|
|
8710
|
+
"summary": "The maximum time that can elapse before a custom resource operation times out."
|
|
8711
|
+
},
|
|
8712
|
+
"immutable": true,
|
|
8713
|
+
"locationInModule": {
|
|
8714
|
+
"filename": "src/generated-structs/OptionalCustomResourceProps.ts",
|
|
8715
|
+
"line": 18
|
|
8716
|
+
},
|
|
8717
|
+
"name": "serviceTimeout",
|
|
8718
|
+
"optional": true,
|
|
8719
|
+
"type": {
|
|
8720
|
+
"fqn": "aws-cdk-lib.Duration"
|
|
8721
|
+
}
|
|
8722
|
+
},
|
|
8723
|
+
{
|
|
8724
|
+
"abstract": true,
|
|
8725
|
+
"docs": {
|
|
8726
|
+
"remarks": "You can implement a provider by listening to raw AWS CloudFormation events\nand specify the ARN of an SNS topic (`topic.topicArn`) or the ARN of an AWS\nLambda function (`lambda.functionArn`) or use the CDK's custom [resource\nprovider framework] which makes it easier to implement robust providers.\n\n[resource provider framework]:\nhttps://docs.aws.amazon.com/cdk/api/latest/docs/custom-resources-readme.html\n\nProvider framework:\n\n```ts\n// use the provider framework from aws-cdk/custom-resources:\nconst provider = new customresources.Provider(this, 'ResourceProvider', {\n onEventHandler,\n isCompleteHandler, // optional\n});\n\nnew CustomResource(this, 'MyResource', {\n serviceToken: provider.serviceToken,\n});\n```\n\nAWS Lambda function (not recommended to use AWS Lambda Functions directly,\nsee the module README):\n\n```ts\n// invoke an AWS Lambda function when a lifecycle event occurs:\nnew CustomResource(this, 'MyResource', {\n serviceToken: myFunction.functionArn,\n});\n```\n\nSNS topic (not recommended to use AWS Lambda Functions directly, see the\nmodule README):\n\n```ts\n// publish lifecycle events to an SNS topic:\nnew CustomResource(this, 'MyResource', {\n serviceToken: myTopic.topicArn,\n});\n```\n\nMaps to [ServiceToken](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudformation-customresource.html#cfn-cloudformation-customresource-servicetoken) property for the `AWS::CloudFormation::CustomResource` resource",
|
|
8727
|
+
"stability": "stable",
|
|
8728
|
+
"summary": "The ARN of the provider which implements this custom resource type."
|
|
8729
|
+
},
|
|
8730
|
+
"immutable": true,
|
|
8731
|
+
"locationInModule": {
|
|
8732
|
+
"filename": "src/generated-structs/OptionalCustomResourceProps.ts",
|
|
8733
|
+
"line": 105
|
|
8734
|
+
},
|
|
8735
|
+
"name": "serviceToken",
|
|
8736
|
+
"optional": true,
|
|
8737
|
+
"type": {
|
|
8738
|
+
"primitive": "string"
|
|
8739
|
+
}
|
|
8740
|
+
}
|
|
8741
|
+
],
|
|
8742
|
+
"symbolId": "src/generated-structs/OptionalCustomResourceProps:OptionalCustomResourceProps"
|
|
8743
|
+
},
|
|
8577
8744
|
"cdk-nextjs.OptionalDistributionProps": {
|
|
8578
8745
|
"assembly": "cdk-nextjs",
|
|
8579
8746
|
"datatype": true,
|
|
@@ -9001,7 +9168,7 @@
|
|
|
9001
9168
|
"immutable": true,
|
|
9002
9169
|
"locationInModule": {
|
|
9003
9170
|
"filename": "src/generated-structs/OptionalDockerImageAssetProps.ts",
|
|
9004
|
-
"line":
|
|
9171
|
+
"line": 120
|
|
9005
9172
|
},
|
|
9006
9173
|
"name": "assetName",
|
|
9007
9174
|
"optional": true,
|
|
@@ -9020,7 +9187,7 @@
|
|
|
9020
9187
|
"immutable": true,
|
|
9021
9188
|
"locationInModule": {
|
|
9022
9189
|
"filename": "src/generated-structs/OptionalDockerImageAssetProps.ts",
|
|
9023
|
-
"line":
|
|
9190
|
+
"line": 113
|
|
9024
9191
|
},
|
|
9025
9192
|
"name": "buildArgs",
|
|
9026
9193
|
"optional": true,
|
|
@@ -9044,7 +9211,7 @@
|
|
|
9044
9211
|
"immutable": true,
|
|
9045
9212
|
"locationInModule": {
|
|
9046
9213
|
"filename": "src/generated-structs/OptionalDockerImageAssetProps.ts",
|
|
9047
|
-
"line":
|
|
9214
|
+
"line": 104
|
|
9048
9215
|
},
|
|
9049
9216
|
"name": "buildSecrets",
|
|
9050
9217
|
"optional": true,
|
|
@@ -9068,7 +9235,7 @@
|
|
|
9068
9235
|
"immutable": true,
|
|
9069
9236
|
"locationInModule": {
|
|
9070
9237
|
"filename": "src/generated-structs/OptionalDockerImageAssetProps.ts",
|
|
9071
|
-
"line":
|
|
9238
|
+
"line": 97
|
|
9072
9239
|
},
|
|
9073
9240
|
"name": "buildSsh",
|
|
9074
9241
|
"optional": true,
|
|
@@ -9086,7 +9253,7 @@
|
|
|
9086
9253
|
"immutable": true,
|
|
9087
9254
|
"locationInModule": {
|
|
9088
9255
|
"filename": "src/generated-structs/OptionalDockerImageAssetProps.ts",
|
|
9089
|
-
"line":
|
|
9256
|
+
"line": 90
|
|
9090
9257
|
},
|
|
9091
9258
|
"name": "cacheDisabled",
|
|
9092
9259
|
"optional": true,
|
|
@@ -9104,7 +9271,7 @@
|
|
|
9104
9271
|
"immutable": true,
|
|
9105
9272
|
"locationInModule": {
|
|
9106
9273
|
"filename": "src/generated-structs/OptionalDockerImageAssetProps.ts",
|
|
9107
|
-
"line":
|
|
9274
|
+
"line": 84
|
|
9108
9275
|
},
|
|
9109
9276
|
"name": "cacheFrom",
|
|
9110
9277
|
"optional": true,
|
|
@@ -9127,27 +9294,46 @@
|
|
|
9127
9294
|
"immutable": true,
|
|
9128
9295
|
"locationInModule": {
|
|
9129
9296
|
"filename": "src/generated-structs/OptionalDockerImageAssetProps.ts",
|
|
9130
|
-
"line":
|
|
9297
|
+
"line": 78
|
|
9298
|
+
},
|
|
9299
|
+
"name": "cacheTo",
|
|
9300
|
+
"optional": true,
|
|
9301
|
+
"type": {
|
|
9302
|
+
"fqn": "aws-cdk-lib.aws_ecr_assets.DockerCacheOption"
|
|
9303
|
+
}
|
|
9304
|
+
},
|
|
9305
|
+
{
|
|
9306
|
+
"abstract": true,
|
|
9307
|
+
"docs": {
|
|
9308
|
+
"remarks": "Any directory inside with a name that matches the CDK output folder (cdk.out by default) will be excluded from the asset",
|
|
9309
|
+
"stability": "stable",
|
|
9310
|
+
"summary": "The directory where the Dockerfile is stored."
|
|
9311
|
+
},
|
|
9312
|
+
"immutable": true,
|
|
9313
|
+
"locationInModule": {
|
|
9314
|
+
"filename": "src/generated-structs/OptionalDockerImageAssetProps.ts",
|
|
9315
|
+
"line": 13
|
|
9131
9316
|
},
|
|
9132
|
-
"name": "
|
|
9317
|
+
"name": "directory",
|
|
9133
9318
|
"optional": true,
|
|
9134
9319
|
"type": {
|
|
9135
|
-
"
|
|
9320
|
+
"primitive": "string"
|
|
9136
9321
|
}
|
|
9137
9322
|
},
|
|
9138
9323
|
{
|
|
9139
9324
|
"abstract": true,
|
|
9140
9325
|
"docs": {
|
|
9141
|
-
"
|
|
9326
|
+
"default": "- Stack-relative construct path",
|
|
9327
|
+
"remarks": "If supplied, the display name will be used in locations where the asset\nidentifier is printed, like in the CLI progress information. If the same\nasset is added multiple times, the display name of the first occurrence is\nused.\n\nIf `assetName` is given, it will also be used as the default `displayName`.\nOtherwise, the default is the construct path of the ImageAsset construct,\nwith respect to the enclosing stack. If the asset is produced by a\nconstruct helper function (such as `lambda.Code.fromAssetImage()`), this\nwill look like `MyFunction/AssetImage`.\n\nWe use the stack-relative construct path so that in the common case where\nyou have multiple stacks with the same asset, we won't show something like\n`/MyBetaStack/MyFunction/Code` when you are actually deploying to\nproduction.",
|
|
9142
9328
|
"stability": "stable",
|
|
9143
|
-
"summary": "
|
|
9329
|
+
"summary": "A display name for this asset."
|
|
9144
9330
|
},
|
|
9145
9331
|
"immutable": true,
|
|
9146
9332
|
"locationInModule": {
|
|
9147
9333
|
"filename": "src/generated-structs/OptionalDockerImageAssetProps.ts",
|
|
9148
|
-
"line":
|
|
9334
|
+
"line": 72
|
|
9149
9335
|
},
|
|
9150
|
-
"name": "
|
|
9336
|
+
"name": "displayName",
|
|
9151
9337
|
"optional": true,
|
|
9152
9338
|
"type": {
|
|
9153
9339
|
"primitive": "string"
|
|
@@ -9164,7 +9350,7 @@
|
|
|
9164
9350
|
"immutable": true,
|
|
9165
9351
|
"locationInModule": {
|
|
9166
9352
|
"filename": "src/generated-structs/OptionalDockerImageAssetProps.ts",
|
|
9167
|
-
"line":
|
|
9353
|
+
"line": 146
|
|
9168
9354
|
},
|
|
9169
9355
|
"name": "exclude",
|
|
9170
9356
|
"optional": true,
|
|
@@ -9187,7 +9373,7 @@
|
|
|
9187
9373
|
"immutable": true,
|
|
9188
9374
|
"locationInModule": {
|
|
9189
9375
|
"filename": "src/generated-structs/OptionalDockerImageAssetProps.ts",
|
|
9190
|
-
"line":
|
|
9376
|
+
"line": 126
|
|
9191
9377
|
},
|
|
9192
9378
|
"name": "extraHash",
|
|
9193
9379
|
"optional": true,
|
|
@@ -9223,7 +9409,7 @@
|
|
|
9223
9409
|
"immutable": true,
|
|
9224
9410
|
"locationInModule": {
|
|
9225
9411
|
"filename": "src/generated-structs/OptionalDockerImageAssetProps.ts",
|
|
9226
|
-
"line":
|
|
9412
|
+
"line": 138
|
|
9227
9413
|
},
|
|
9228
9414
|
"name": "followSymlinks",
|
|
9229
9415
|
"optional": true,
|
|
@@ -9241,7 +9427,7 @@
|
|
|
9241
9427
|
"immutable": true,
|
|
9242
9428
|
"locationInModule": {
|
|
9243
9429
|
"filename": "src/generated-structs/OptionalDockerImageAssetProps.ts",
|
|
9244
|
-
"line":
|
|
9430
|
+
"line": 132
|
|
9245
9431
|
},
|
|
9246
9432
|
"name": "ignoreMode",
|
|
9247
9433
|
"optional": true,
|
|
@@ -12465,7 +12651,7 @@
|
|
|
12465
12651
|
"immutable": true,
|
|
12466
12652
|
"locationInModule": {
|
|
12467
12653
|
"filename": "src/generated-structs/OptionalNextjsAssetsDeploymentProps.ts",
|
|
12468
|
-
"line":
|
|
12654
|
+
"line": 52
|
|
12469
12655
|
},
|
|
12470
12656
|
"name": "accessPoint",
|
|
12471
12657
|
"optional": true,
|
|
@@ -12473,6 +12659,23 @@
|
|
|
12473
12659
|
"fqn": "aws-cdk-lib.aws_efs.AccessPoint"
|
|
12474
12660
|
}
|
|
12475
12661
|
},
|
|
12662
|
+
{
|
|
12663
|
+
"abstract": true,
|
|
12664
|
+
"docs": {
|
|
12665
|
+
"stability": "stable",
|
|
12666
|
+
"summary": "Prefix to the URI path the app will be served at."
|
|
12667
|
+
},
|
|
12668
|
+
"immutable": true,
|
|
12669
|
+
"locationInModule": {
|
|
12670
|
+
"filename": "src/generated-structs/OptionalNextjsAssetsDeploymentProps.ts",
|
|
12671
|
+
"line": 28
|
|
12672
|
+
},
|
|
12673
|
+
"name": "basePath",
|
|
12674
|
+
"optional": true,
|
|
12675
|
+
"type": {
|
|
12676
|
+
"primitive": "string"
|
|
12677
|
+
}
|
|
12678
|
+
},
|
|
12476
12679
|
{
|
|
12477
12680
|
"abstract": true,
|
|
12478
12681
|
"docs": {
|
|
@@ -12481,9 +12684,9 @@
|
|
|
12481
12684
|
"immutable": true,
|
|
12482
12685
|
"locationInModule": {
|
|
12483
12686
|
"filename": "src/generated-structs/OptionalNextjsAssetsDeploymentProps.ts",
|
|
12484
|
-
"line":
|
|
12687
|
+
"line": 48
|
|
12485
12688
|
},
|
|
12486
|
-
"name": "
|
|
12689
|
+
"name": "buildId",
|
|
12487
12690
|
"optional": true,
|
|
12488
12691
|
"type": {
|
|
12489
12692
|
"primitive": "string"
|
|
@@ -12497,9 +12700,9 @@
|
|
|
12497
12700
|
"immutable": true,
|
|
12498
12701
|
"locationInModule": {
|
|
12499
12702
|
"filename": "src/generated-structs/OptionalNextjsAssetsDeploymentProps.ts",
|
|
12500
|
-
"line":
|
|
12703
|
+
"line": 44
|
|
12501
12704
|
},
|
|
12502
|
-
"name": "
|
|
12705
|
+
"name": "buildImageDigest",
|
|
12503
12706
|
"optional": true,
|
|
12504
12707
|
"type": {
|
|
12505
12708
|
"primitive": "string"
|
|
@@ -12509,12 +12712,13 @@
|
|
|
12509
12712
|
"abstract": true,
|
|
12510
12713
|
"docs": {
|
|
12511
12714
|
"default": "true",
|
|
12512
|
-
"stability": "stable"
|
|
12715
|
+
"stability": "stable",
|
|
12716
|
+
"summary": "If true, logs details in custom resource lambda."
|
|
12513
12717
|
},
|
|
12514
12718
|
"immutable": true,
|
|
12515
12719
|
"locationInModule": {
|
|
12516
12720
|
"filename": "src/generated-structs/OptionalNextjsAssetsDeploymentProps.ts",
|
|
12517
|
-
"line":
|
|
12721
|
+
"line": 23
|
|
12518
12722
|
},
|
|
12519
12723
|
"name": "debug",
|
|
12520
12724
|
"optional": true,
|
|
@@ -12530,7 +12734,7 @@
|
|
|
12530
12734
|
"immutable": true,
|
|
12531
12735
|
"locationInModule": {
|
|
12532
12736
|
"filename": "src/generated-structs/OptionalNextjsAssetsDeploymentProps.ts",
|
|
12533
|
-
"line":
|
|
12737
|
+
"line": 40
|
|
12534
12738
|
},
|
|
12535
12739
|
"name": "dockerImageCode",
|
|
12536
12740
|
"optional": true,
|
|
@@ -12546,7 +12750,7 @@
|
|
|
12546
12750
|
"immutable": true,
|
|
12547
12751
|
"locationInModule": {
|
|
12548
12752
|
"filename": "src/generated-structs/OptionalNextjsAssetsDeploymentProps.ts",
|
|
12549
|
-
"line":
|
|
12753
|
+
"line": 36
|
|
12550
12754
|
},
|
|
12551
12755
|
"name": "nextjsType",
|
|
12552
12756
|
"optional": true,
|
|
@@ -12564,7 +12768,7 @@
|
|
|
12564
12768
|
"filename": "src/generated-structs/OptionalNextjsAssetsDeploymentProps.ts",
|
|
12565
12769
|
"line": 17
|
|
12566
12770
|
},
|
|
12567
|
-
"name": "
|
|
12771
|
+
"name": "relativePathToPackage",
|
|
12568
12772
|
"optional": true,
|
|
12569
12773
|
"type": {
|
|
12570
12774
|
"primitive": "string"
|
|
@@ -12595,7 +12799,7 @@
|
|
|
12595
12799
|
"immutable": true,
|
|
12596
12800
|
"locationInModule": {
|
|
12597
12801
|
"filename": "src/generated-structs/OptionalNextjsAssetsDeploymentProps.ts",
|
|
12598
|
-
"line":
|
|
12802
|
+
"line": 32
|
|
12599
12803
|
},
|
|
12600
12804
|
"name": "vpc",
|
|
12601
12805
|
"optional": true,
|
|
@@ -12695,7 +12899,7 @@
|
|
|
12695
12899
|
"filename": "src/generated-structs/OptionalNextjsBuildProps.ts",
|
|
12696
12900
|
"line": 11
|
|
12697
12901
|
},
|
|
12698
|
-
"name": "
|
|
12902
|
+
"name": "relativePathToPackage",
|
|
12699
12903
|
"optional": true,
|
|
12700
12904
|
"type": {
|
|
12701
12905
|
"primitive": "string"
|
|
@@ -12743,9 +12947,9 @@
|
|
|
12743
12947
|
"immutable": true,
|
|
12744
12948
|
"locationInModule": {
|
|
12745
12949
|
"filename": "src/generated-structs/OptionalNextjsContainersProps.ts",
|
|
12746
|
-
"line":
|
|
12950
|
+
"line": 28
|
|
12747
12951
|
},
|
|
12748
|
-
"name": "
|
|
12952
|
+
"name": "buildId",
|
|
12749
12953
|
"optional": true,
|
|
12750
12954
|
"type": {
|
|
12751
12955
|
"primitive": "string"
|
|
@@ -12791,7 +12995,7 @@
|
|
|
12791
12995
|
"immutable": true,
|
|
12792
12996
|
"locationInModule": {
|
|
12793
12997
|
"filename": "src/generated-structs/OptionalNextjsContainersProps.ts",
|
|
12794
|
-
"line":
|
|
12998
|
+
"line": 36
|
|
12795
12999
|
},
|
|
12796
13000
|
"name": "healthCheckPath",
|
|
12797
13001
|
"optional": true,
|
|
@@ -12839,7 +13043,7 @@
|
|
|
12839
13043
|
"immutable": true,
|
|
12840
13044
|
"locationInModule": {
|
|
12841
13045
|
"filename": "src/generated-structs/OptionalNextjsContainersProps.ts",
|
|
12842
|
-
"line":
|
|
13046
|
+
"line": 32
|
|
12843
13047
|
},
|
|
12844
13048
|
"name": "vpc",
|
|
12845
13049
|
"optional": true,
|
|
@@ -12903,67 +13107,273 @@
|
|
|
12903
13107
|
"abstract": true,
|
|
12904
13108
|
"docs": {
|
|
12905
13109
|
"stability": "stable",
|
|
12906
|
-
"summary": "Optional but only applicable for `NextjsType.GLOBAL_CONTAINERS`."
|
|
13110
|
+
"summary": "Optional but only applicable for `NextjsType.GLOBAL_CONTAINERS`."
|
|
13111
|
+
},
|
|
13112
|
+
"immutable": true,
|
|
13113
|
+
"locationInModule": {
|
|
13114
|
+
"filename": "src/generated-structs/OptionalNextjsDistributionProps.ts",
|
|
13115
|
+
"line": 27
|
|
13116
|
+
},
|
|
13117
|
+
"name": "certificate",
|
|
13118
|
+
"optional": true,
|
|
13119
|
+
"type": {
|
|
13120
|
+
"fqn": "aws-cdk-lib.aws_certificatemanager.ICertificate"
|
|
13121
|
+
}
|
|
13122
|
+
},
|
|
13123
|
+
{
|
|
13124
|
+
"abstract": true,
|
|
13125
|
+
"docs": {
|
|
13126
|
+
"stability": "stable"
|
|
13127
|
+
},
|
|
13128
|
+
"immutable": true,
|
|
13129
|
+
"locationInModule": {
|
|
13130
|
+
"filename": "src/generated-structs/OptionalNextjsDistributionProps.ts",
|
|
13131
|
+
"line": 22
|
|
13132
|
+
},
|
|
13133
|
+
"name": "distribution",
|
|
13134
|
+
"optional": true,
|
|
13135
|
+
"type": {
|
|
13136
|
+
"fqn": "aws-cdk-lib.aws_cloudfront.Distribution"
|
|
13137
|
+
}
|
|
13138
|
+
},
|
|
13139
|
+
{
|
|
13140
|
+
"abstract": true,
|
|
13141
|
+
"docs": {
|
|
13142
|
+
"stability": "stable",
|
|
13143
|
+
"summary": "Required if `NextjsType.GLOBAL_FUNCTIONS`."
|
|
13144
|
+
},
|
|
13145
|
+
"immutable": true,
|
|
13146
|
+
"locationInModule": {
|
|
13147
|
+
"filename": "src/generated-structs/OptionalNextjsDistributionProps.ts",
|
|
13148
|
+
"line": 18
|
|
13149
|
+
},
|
|
13150
|
+
"name": "functionUrl",
|
|
13151
|
+
"optional": true,
|
|
13152
|
+
"type": {
|
|
13153
|
+
"fqn": "aws-cdk-lib.aws_lambda.IFunctionUrl"
|
|
13154
|
+
}
|
|
13155
|
+
},
|
|
13156
|
+
{
|
|
13157
|
+
"abstract": true,
|
|
13158
|
+
"docs": {
|
|
13159
|
+
"stability": "stable",
|
|
13160
|
+
"summary": "Required if `NextjsType.GLOBAL_CONTAINERS` or `NextjsType.REGIONAL_CONTAINERS`."
|
|
13161
|
+
},
|
|
13162
|
+
"immutable": true,
|
|
13163
|
+
"locationInModule": {
|
|
13164
|
+
"filename": "src/generated-structs/OptionalNextjsDistributionProps.ts",
|
|
13165
|
+
"line": 13
|
|
13166
|
+
},
|
|
13167
|
+
"name": "loadBalancer",
|
|
13168
|
+
"optional": true,
|
|
13169
|
+
"type": {
|
|
13170
|
+
"fqn": "aws-cdk-lib.aws_elasticloadbalancingv2.ApplicationLoadBalancer"
|
|
13171
|
+
}
|
|
13172
|
+
},
|
|
13173
|
+
{
|
|
13174
|
+
"abstract": true,
|
|
13175
|
+
"docs": {
|
|
13176
|
+
"stability": "stable"
|
|
13177
|
+
},
|
|
13178
|
+
"immutable": true,
|
|
13179
|
+
"locationInModule": {
|
|
13180
|
+
"filename": "src/generated-structs/OptionalNextjsDistributionProps.ts",
|
|
13181
|
+
"line": 40
|
|
13182
|
+
},
|
|
13183
|
+
"name": "nextjsType",
|
|
13184
|
+
"optional": true,
|
|
13185
|
+
"type": {
|
|
13186
|
+
"fqn": "cdk-nextjs.NextjsType"
|
|
13187
|
+
}
|
|
13188
|
+
},
|
|
13189
|
+
{
|
|
13190
|
+
"abstract": true,
|
|
13191
|
+
"docs": {
|
|
13192
|
+
"stability": "stable",
|
|
13193
|
+
"summary": "Path to directory of Next.js app's public directory. Used to add static behaviors to distribution."
|
|
13194
|
+
},
|
|
13195
|
+
"immutable": true,
|
|
13196
|
+
"locationInModule": {
|
|
13197
|
+
"filename": "src/generated-structs/OptionalNextjsDistributionProps.ts",
|
|
13198
|
+
"line": 36
|
|
13199
|
+
},
|
|
13200
|
+
"name": "publicDirEntries",
|
|
13201
|
+
"optional": true,
|
|
13202
|
+
"type": {
|
|
13203
|
+
"collection": {
|
|
13204
|
+
"elementtype": {
|
|
13205
|
+
"fqn": "cdk-nextjs.PublicDirEntry"
|
|
13206
|
+
},
|
|
13207
|
+
"kind": "array"
|
|
13208
|
+
}
|
|
13209
|
+
}
|
|
13210
|
+
}
|
|
13211
|
+
],
|
|
13212
|
+
"symbolId": "src/generated-structs/OptionalNextjsDistributionProps:OptionalNextjsDistributionProps"
|
|
13213
|
+
},
|
|
13214
|
+
"cdk-nextjs.OptionalNextjsFileSystemProps": {
|
|
13215
|
+
"assembly": "cdk-nextjs",
|
|
13216
|
+
"datatype": true,
|
|
13217
|
+
"docs": {
|
|
13218
|
+
"stability": "stable",
|
|
13219
|
+
"summary": "OptionalNextjsFileSystemProps."
|
|
13220
|
+
},
|
|
13221
|
+
"fqn": "cdk-nextjs.OptionalNextjsFileSystemProps",
|
|
13222
|
+
"kind": "interface",
|
|
13223
|
+
"locationInModule": {
|
|
13224
|
+
"filename": "src/generated-structs/OptionalNextjsFileSystemProps.ts",
|
|
13225
|
+
"line": 7
|
|
13226
|
+
},
|
|
13227
|
+
"name": "OptionalNextjsFileSystemProps",
|
|
13228
|
+
"properties": [
|
|
13229
|
+
{
|
|
13230
|
+
"abstract": true,
|
|
13231
|
+
"docs": {
|
|
13232
|
+
"stability": "stable"
|
|
13233
|
+
},
|
|
13234
|
+
"immutable": true,
|
|
13235
|
+
"locationInModule": {
|
|
13236
|
+
"filename": "src/generated-structs/OptionalNextjsFileSystemProps.ts",
|
|
13237
|
+
"line": 11
|
|
13238
|
+
},
|
|
13239
|
+
"name": "vpc",
|
|
13240
|
+
"optional": true,
|
|
13241
|
+
"type": {
|
|
13242
|
+
"fqn": "aws-cdk-lib.aws_ec2.IVpc"
|
|
13243
|
+
}
|
|
13244
|
+
}
|
|
13245
|
+
],
|
|
13246
|
+
"symbolId": "src/generated-structs/OptionalNextjsFileSystemProps:OptionalNextjsFileSystemProps"
|
|
13247
|
+
},
|
|
13248
|
+
"cdk-nextjs.OptionalNextjsPostDeployProps": {
|
|
13249
|
+
"assembly": "cdk-nextjs",
|
|
13250
|
+
"datatype": true,
|
|
13251
|
+
"docs": {
|
|
13252
|
+
"stability": "stable",
|
|
13253
|
+
"summary": "OptionalNextjsPostDeployProps."
|
|
13254
|
+
},
|
|
13255
|
+
"fqn": "cdk-nextjs.OptionalNextjsPostDeployProps",
|
|
13256
|
+
"kind": "interface",
|
|
13257
|
+
"locationInModule": {
|
|
13258
|
+
"filename": "src/generated-structs/OptionalNextjsPostDeployProps.ts",
|
|
13259
|
+
"line": 7
|
|
13260
|
+
},
|
|
13261
|
+
"name": "OptionalNextjsPostDeployProps",
|
|
13262
|
+
"properties": [
|
|
13263
|
+
{
|
|
13264
|
+
"abstract": true,
|
|
13265
|
+
"docs": {
|
|
13266
|
+
"stability": "stable"
|
|
13267
|
+
},
|
|
13268
|
+
"immutable": true,
|
|
13269
|
+
"locationInModule": {
|
|
13270
|
+
"filename": "src/generated-structs/OptionalNextjsPostDeployProps.ts",
|
|
13271
|
+
"line": 43
|
|
13272
|
+
},
|
|
13273
|
+
"name": "accessPoint",
|
|
13274
|
+
"optional": true,
|
|
13275
|
+
"type": {
|
|
13276
|
+
"fqn": "aws-cdk-lib.aws_efs.AccessPoint"
|
|
13277
|
+
}
|
|
13278
|
+
},
|
|
13279
|
+
{
|
|
13280
|
+
"abstract": true,
|
|
13281
|
+
"docs": {
|
|
13282
|
+
"stability": "stable"
|
|
13283
|
+
},
|
|
13284
|
+
"immutable": true,
|
|
13285
|
+
"locationInModule": {
|
|
13286
|
+
"filename": "src/generated-structs/OptionalNextjsPostDeployProps.ts",
|
|
13287
|
+
"line": 39
|
|
13288
|
+
},
|
|
13289
|
+
"name": "buildId",
|
|
13290
|
+
"optional": true,
|
|
13291
|
+
"type": {
|
|
13292
|
+
"primitive": "string"
|
|
13293
|
+
}
|
|
13294
|
+
},
|
|
13295
|
+
{
|
|
13296
|
+
"abstract": true,
|
|
13297
|
+
"docs": {
|
|
13298
|
+
"stability": "stable"
|
|
13299
|
+
},
|
|
13300
|
+
"immutable": true,
|
|
13301
|
+
"locationInModule": {
|
|
13302
|
+
"filename": "src/generated-structs/OptionalNextjsPostDeployProps.ts",
|
|
13303
|
+
"line": 35
|
|
13304
|
+
},
|
|
13305
|
+
"name": "buildImageDigest",
|
|
13306
|
+
"optional": true,
|
|
13307
|
+
"type": {
|
|
13308
|
+
"primitive": "string"
|
|
13309
|
+
}
|
|
13310
|
+
},
|
|
13311
|
+
{
|
|
13312
|
+
"abstract": true,
|
|
13313
|
+
"docs": {
|
|
13314
|
+
"default": "true",
|
|
13315
|
+
"stability": "stable",
|
|
13316
|
+
"summary": "If true, logs details in custom resource lambda."
|
|
12907
13317
|
},
|
|
12908
13318
|
"immutable": true,
|
|
12909
13319
|
"locationInModule": {
|
|
12910
|
-
"filename": "src/generated-structs/
|
|
13320
|
+
"filename": "src/generated-structs/OptionalNextjsPostDeployProps.ts",
|
|
12911
13321
|
"line": 27
|
|
12912
13322
|
},
|
|
12913
|
-
"name": "
|
|
13323
|
+
"name": "debug",
|
|
12914
13324
|
"optional": true,
|
|
12915
13325
|
"type": {
|
|
12916
|
-
"
|
|
13326
|
+
"primitive": "boolean"
|
|
12917
13327
|
}
|
|
12918
13328
|
},
|
|
12919
13329
|
{
|
|
12920
13330
|
"abstract": true,
|
|
12921
13331
|
"docs": {
|
|
12922
|
-
"stability": "stable"
|
|
13332
|
+
"stability": "stable",
|
|
13333
|
+
"summary": "CloudFront Distribution to invalidate."
|
|
12923
13334
|
},
|
|
12924
13335
|
"immutable": true,
|
|
12925
13336
|
"locationInModule": {
|
|
12926
|
-
"filename": "src/generated-structs/
|
|
12927
|
-
"line":
|
|
13337
|
+
"filename": "src/generated-structs/OptionalNextjsPostDeployProps.ts",
|
|
13338
|
+
"line": 21
|
|
12928
13339
|
},
|
|
12929
13340
|
"name": "distribution",
|
|
12930
13341
|
"optional": true,
|
|
12931
13342
|
"type": {
|
|
12932
|
-
"fqn": "aws-cdk-lib.aws_cloudfront.
|
|
13343
|
+
"fqn": "aws-cdk-lib.aws_cloudfront.IDistribution"
|
|
12933
13344
|
}
|
|
12934
13345
|
},
|
|
12935
13346
|
{
|
|
12936
13347
|
"abstract": true,
|
|
12937
13348
|
"docs": {
|
|
12938
|
-
"stability": "stable"
|
|
12939
|
-
"summary": "Required if `NextjsType.GLOBAL_FUNCTIONS`."
|
|
13349
|
+
"stability": "stable"
|
|
12940
13350
|
},
|
|
12941
13351
|
"immutable": true,
|
|
12942
13352
|
"locationInModule": {
|
|
12943
|
-
"filename": "src/generated-structs/
|
|
12944
|
-
"line":
|
|
13353
|
+
"filename": "src/generated-structs/OptionalNextjsPostDeployProps.ts",
|
|
13354
|
+
"line": 16
|
|
12945
13355
|
},
|
|
12946
|
-
"name": "
|
|
13356
|
+
"name": "relativePathToPackage",
|
|
12947
13357
|
"optional": true,
|
|
12948
13358
|
"type": {
|
|
12949
|
-
"
|
|
13359
|
+
"primitive": "string"
|
|
12950
13360
|
}
|
|
12951
13361
|
},
|
|
12952
13362
|
{
|
|
12953
13363
|
"abstract": true,
|
|
12954
13364
|
"docs": {
|
|
12955
13365
|
"stability": "stable",
|
|
12956
|
-
"summary": "Required
|
|
13366
|
+
"summary": "Required for `NextjsType.GlobalFunctions` and `NextjsType.GlobalContainers`."
|
|
12957
13367
|
},
|
|
12958
13368
|
"immutable": true,
|
|
12959
13369
|
"locationInModule": {
|
|
12960
|
-
"filename": "src/generated-structs/
|
|
12961
|
-
"line":
|
|
13370
|
+
"filename": "src/generated-structs/OptionalNextjsPostDeployProps.ts",
|
|
13371
|
+
"line": 12
|
|
12962
13372
|
},
|
|
12963
|
-
"name": "
|
|
13373
|
+
"name": "staticAssetsBucket",
|
|
12964
13374
|
"optional": true,
|
|
12965
13375
|
"type": {
|
|
12966
|
-
"fqn": "aws-cdk-lib.
|
|
13376
|
+
"fqn": "aws-cdk-lib.aws_s3.Bucket"
|
|
12967
13377
|
}
|
|
12968
13378
|
},
|
|
12969
13379
|
{
|
|
@@ -12973,54 +13383,32 @@
|
|
|
12973
13383
|
},
|
|
12974
13384
|
"immutable": true,
|
|
12975
13385
|
"locationInModule": {
|
|
12976
|
-
"filename": "src/generated-structs/
|
|
12977
|
-
"line":
|
|
12978
|
-
},
|
|
12979
|
-
"name": "nextjsType",
|
|
12980
|
-
"optional": true,
|
|
12981
|
-
"type": {
|
|
12982
|
-
"fqn": "cdk-nextjs.NextjsType"
|
|
12983
|
-
}
|
|
12984
|
-
},
|
|
12985
|
-
{
|
|
12986
|
-
"abstract": true,
|
|
12987
|
-
"docs": {
|
|
12988
|
-
"stability": "stable",
|
|
12989
|
-
"summary": "Path to directory of Next.js app's public directory. Used to add static behaviors to distribution."
|
|
12990
|
-
},
|
|
12991
|
-
"immutable": true,
|
|
12992
|
-
"locationInModule": {
|
|
12993
|
-
"filename": "src/generated-structs/OptionalNextjsDistributionProps.ts",
|
|
12994
|
-
"line": 36
|
|
13386
|
+
"filename": "src/generated-structs/OptionalNextjsPostDeployProps.ts",
|
|
13387
|
+
"line": 31
|
|
12995
13388
|
},
|
|
12996
|
-
"name": "
|
|
13389
|
+
"name": "vpc",
|
|
12997
13390
|
"optional": true,
|
|
12998
13391
|
"type": {
|
|
12999
|
-
"
|
|
13000
|
-
"elementtype": {
|
|
13001
|
-
"fqn": "cdk-nextjs.PublicDirEntry"
|
|
13002
|
-
},
|
|
13003
|
-
"kind": "array"
|
|
13004
|
-
}
|
|
13392
|
+
"fqn": "aws-cdk-lib.aws_ec2.IVpc"
|
|
13005
13393
|
}
|
|
13006
13394
|
}
|
|
13007
13395
|
],
|
|
13008
|
-
"symbolId": "src/generated-structs/
|
|
13396
|
+
"symbolId": "src/generated-structs/OptionalNextjsPostDeployProps:OptionalNextjsPostDeployProps"
|
|
13009
13397
|
},
|
|
13010
|
-
"cdk-nextjs.
|
|
13398
|
+
"cdk-nextjs.OptionalNextjsVpcProps": {
|
|
13011
13399
|
"assembly": "cdk-nextjs",
|
|
13012
13400
|
"datatype": true,
|
|
13013
13401
|
"docs": {
|
|
13014
13402
|
"stability": "stable",
|
|
13015
|
-
"summary": "
|
|
13403
|
+
"summary": "OptionalNextjsVpcProps."
|
|
13016
13404
|
},
|
|
13017
|
-
"fqn": "cdk-nextjs.
|
|
13405
|
+
"fqn": "cdk-nextjs.OptionalNextjsVpcProps",
|
|
13018
13406
|
"kind": "interface",
|
|
13019
13407
|
"locationInModule": {
|
|
13020
|
-
"filename": "src/generated-structs/
|
|
13021
|
-
"line":
|
|
13408
|
+
"filename": "src/generated-structs/OptionalNextjsVpcProps.ts",
|
|
13409
|
+
"line": 8
|
|
13022
13410
|
},
|
|
13023
|
-
"name": "
|
|
13411
|
+
"name": "OptionalNextjsVpcProps",
|
|
13024
13412
|
"properties": [
|
|
13025
13413
|
{
|
|
13026
13414
|
"abstract": true,
|
|
@@ -13029,8 +13417,25 @@
|
|
|
13029
13417
|
},
|
|
13030
13418
|
"immutable": true,
|
|
13031
13419
|
"locationInModule": {
|
|
13032
|
-
"filename": "src/generated-structs/
|
|
13033
|
-
"line":
|
|
13420
|
+
"filename": "src/generated-structs/OptionalNextjsVpcProps.ts",
|
|
13421
|
+
"line": 17
|
|
13422
|
+
},
|
|
13423
|
+
"name": "nextjsType",
|
|
13424
|
+
"optional": true,
|
|
13425
|
+
"type": {
|
|
13426
|
+
"fqn": "cdk-nextjs.NextjsType"
|
|
13427
|
+
}
|
|
13428
|
+
},
|
|
13429
|
+
{
|
|
13430
|
+
"abstract": true,
|
|
13431
|
+
"docs": {
|
|
13432
|
+
"stability": "stable",
|
|
13433
|
+
"summary": "Bring your own VPC."
|
|
13434
|
+
},
|
|
13435
|
+
"immutable": true,
|
|
13436
|
+
"locationInModule": {
|
|
13437
|
+
"filename": "src/generated-structs/OptionalNextjsVpcProps.ts",
|
|
13438
|
+
"line": 13
|
|
13034
13439
|
},
|
|
13035
13440
|
"name": "vpc",
|
|
13036
13441
|
"optional": true,
|
|
@@ -13039,58 +13444,41 @@
|
|
|
13039
13444
|
}
|
|
13040
13445
|
}
|
|
13041
13446
|
],
|
|
13042
|
-
"symbolId": "src/generated-structs/
|
|
13447
|
+
"symbolId": "src/generated-structs/OptionalNextjsVpcProps:OptionalNextjsVpcProps"
|
|
13043
13448
|
},
|
|
13044
|
-
"cdk-nextjs.
|
|
13449
|
+
"cdk-nextjs.OptionalPostDeployCustomResourceProperties": {
|
|
13045
13450
|
"assembly": "cdk-nextjs",
|
|
13046
13451
|
"datatype": true,
|
|
13047
13452
|
"docs": {
|
|
13048
13453
|
"stability": "stable",
|
|
13049
|
-
"summary": "
|
|
13454
|
+
"summary": "OptionalPostDeployCustomResourceProperties."
|
|
13050
13455
|
},
|
|
13051
|
-
"fqn": "cdk-nextjs.
|
|
13456
|
+
"fqn": "cdk-nextjs.OptionalPostDeployCustomResourceProperties",
|
|
13052
13457
|
"kind": "interface",
|
|
13053
13458
|
"locationInModule": {
|
|
13054
|
-
"filename": "src/generated-structs/
|
|
13055
|
-
"line":
|
|
13459
|
+
"filename": "src/generated-structs/OptionalPostDeployCustomResourceProperties.ts",
|
|
13460
|
+
"line": 6
|
|
13056
13461
|
},
|
|
13057
|
-
"name": "
|
|
13462
|
+
"name": "OptionalPostDeployCustomResourceProperties",
|
|
13058
13463
|
"properties": [
|
|
13059
13464
|
{
|
|
13060
13465
|
"abstract": true,
|
|
13061
13466
|
"docs": {
|
|
13467
|
+
"remarks": "Used to prune FileSystem of directories\nwith old build ids and prune S3 based on metadat and `msTtl`",
|
|
13062
13468
|
"stability": "stable",
|
|
13063
|
-
"summary": "
|
|
13469
|
+
"summary": "Build ID of current deployment."
|
|
13064
13470
|
},
|
|
13065
13471
|
"immutable": true,
|
|
13066
13472
|
"locationInModule": {
|
|
13067
|
-
"filename": "src/generated-structs/
|
|
13068
|
-
"line":
|
|
13473
|
+
"filename": "src/generated-structs/OptionalPostDeployCustomResourceProperties.ts",
|
|
13474
|
+
"line": 42
|
|
13069
13475
|
},
|
|
13070
|
-
"name": "
|
|
13476
|
+
"name": "buildId",
|
|
13071
13477
|
"optional": true,
|
|
13072
13478
|
"type": {
|
|
13073
|
-
"
|
|
13479
|
+
"primitive": "string"
|
|
13074
13480
|
}
|
|
13075
|
-
}
|
|
13076
|
-
],
|
|
13077
|
-
"symbolId": "src/generated-structs/OptionalNextjsInvalidationProps:OptionalNextjsInvalidationProps"
|
|
13078
|
-
},
|
|
13079
|
-
"cdk-nextjs.OptionalNextjsVpcProps": {
|
|
13080
|
-
"assembly": "cdk-nextjs",
|
|
13081
|
-
"datatype": true,
|
|
13082
|
-
"docs": {
|
|
13083
|
-
"stability": "stable",
|
|
13084
|
-
"summary": "OptionalNextjsVpcProps."
|
|
13085
|
-
},
|
|
13086
|
-
"fqn": "cdk-nextjs.OptionalNextjsVpcProps",
|
|
13087
|
-
"kind": "interface",
|
|
13088
|
-
"locationInModule": {
|
|
13089
|
-
"filename": "src/generated-structs/OptionalNextjsVpcProps.ts",
|
|
13090
|
-
"line": 8
|
|
13091
|
-
},
|
|
13092
|
-
"name": "OptionalNextjsVpcProps",
|
|
13093
|
-
"properties": [
|
|
13481
|
+
},
|
|
13094
13482
|
{
|
|
13095
13483
|
"abstract": true,
|
|
13096
13484
|
"docs": {
|
|
@@ -13098,34 +13486,74 @@
|
|
|
13098
13486
|
},
|
|
13099
13487
|
"immutable": true,
|
|
13100
13488
|
"locationInModule": {
|
|
13101
|
-
"filename": "src/generated-structs/
|
|
13102
|
-
"line":
|
|
13489
|
+
"filename": "src/generated-structs/OptionalPostDeployCustomResourceProperties.ts",
|
|
13490
|
+
"line": 35
|
|
13103
13491
|
},
|
|
13104
|
-
"name": "
|
|
13492
|
+
"name": "buildImageDigest",
|
|
13105
13493
|
"optional": true,
|
|
13106
13494
|
"type": {
|
|
13107
|
-
"
|
|
13495
|
+
"primitive": "string"
|
|
13496
|
+
}
|
|
13497
|
+
},
|
|
13498
|
+
{
|
|
13499
|
+
"abstract": true,
|
|
13500
|
+
"docs": {
|
|
13501
|
+
"default": "{\ndistributionId: this.props.distribution?.distributionId,\ninvalidationBatch: {\ncallerReference: new Date().toISOString(),\npaths: {\nquantity: 1,\nitems: [\"/*\"], // invalidate all paths\n},\n},\n}",
|
|
13502
|
+
"stability": "stable"
|
|
13503
|
+
},
|
|
13504
|
+
"immutable": true,
|
|
13505
|
+
"locationInModule": {
|
|
13506
|
+
"filename": "src/generated-structs/OptionalPostDeployCustomResourceProperties.ts",
|
|
13507
|
+
"line": 24
|
|
13508
|
+
},
|
|
13509
|
+
"name": "createInvalidationCommandInput",
|
|
13510
|
+
"optional": true,
|
|
13511
|
+
"type": {
|
|
13512
|
+
"collection": {
|
|
13513
|
+
"elementtype": {
|
|
13514
|
+
"primitive": "any"
|
|
13515
|
+
},
|
|
13516
|
+
"kind": "map"
|
|
13517
|
+
}
|
|
13108
13518
|
}
|
|
13109
13519
|
},
|
|
13110
13520
|
{
|
|
13111
13521
|
"abstract": true,
|
|
13112
13522
|
"docs": {
|
|
13523
|
+
"default": "(1000 * 60 * 60 * 24 * 30).toString()",
|
|
13524
|
+
"remarks": "Must be string because of CloudFormation Custom Resource limitation",
|
|
13113
13525
|
"stability": "stable",
|
|
13114
|
-
"summary": "
|
|
13526
|
+
"summary": "Time to live in milliseconds."
|
|
13115
13527
|
},
|
|
13116
13528
|
"immutable": true,
|
|
13117
13529
|
"locationInModule": {
|
|
13118
|
-
"filename": "src/generated-structs/
|
|
13119
|
-
"line":
|
|
13530
|
+
"filename": "src/generated-structs/OptionalPostDeployCustomResourceProperties.ts",
|
|
13531
|
+
"line": 31
|
|
13120
13532
|
},
|
|
13121
|
-
"name": "
|
|
13533
|
+
"name": "msTtl",
|
|
13122
13534
|
"optional": true,
|
|
13123
13535
|
"type": {
|
|
13124
|
-
"
|
|
13536
|
+
"primitive": "string"
|
|
13537
|
+
}
|
|
13538
|
+
},
|
|
13539
|
+
{
|
|
13540
|
+
"abstract": true,
|
|
13541
|
+
"docs": {
|
|
13542
|
+
"stability": "stable"
|
|
13543
|
+
},
|
|
13544
|
+
"immutable": true,
|
|
13545
|
+
"locationInModule": {
|
|
13546
|
+
"filename": "src/generated-structs/OptionalPostDeployCustomResourceProperties.ts",
|
|
13547
|
+
"line": 10
|
|
13548
|
+
},
|
|
13549
|
+
"name": "staticAssetsBucketName",
|
|
13550
|
+
"optional": true,
|
|
13551
|
+
"type": {
|
|
13552
|
+
"primitive": "string"
|
|
13125
13553
|
}
|
|
13126
13554
|
}
|
|
13127
13555
|
],
|
|
13128
|
-
"symbolId": "src/generated-structs/
|
|
13556
|
+
"symbolId": "src/generated-structs/OptionalPostDeployCustomResourceProperties:OptionalPostDeployCustomResourceProperties"
|
|
13129
13557
|
},
|
|
13130
13558
|
"cdk-nextjs.OptionalS3OriginBucketWithOACProps": {
|
|
13131
13559
|
"assembly": "cdk-nextjs",
|
|
@@ -13816,6 +14244,113 @@
|
|
|
13816
14244
|
],
|
|
13817
14245
|
"symbolId": "src/generated-structs/OptionalVpcProps:OptionalVpcProps"
|
|
13818
14246
|
},
|
|
14247
|
+
"cdk-nextjs.PostDeployCustomResourceProperties": {
|
|
14248
|
+
"assembly": "cdk-nextjs",
|
|
14249
|
+
"datatype": true,
|
|
14250
|
+
"docs": {
|
|
14251
|
+
"stability": "stable"
|
|
14252
|
+
},
|
|
14253
|
+
"fqn": "cdk-nextjs.PostDeployCustomResourceProperties",
|
|
14254
|
+
"kind": "interface",
|
|
14255
|
+
"locationInModule": {
|
|
14256
|
+
"filename": "src/nextjs-post-deploy.ts",
|
|
14257
|
+
"line": 64
|
|
14258
|
+
},
|
|
14259
|
+
"name": "PostDeployCustomResourceProperties",
|
|
14260
|
+
"properties": [
|
|
14261
|
+
{
|
|
14262
|
+
"abstract": true,
|
|
14263
|
+
"docs": {
|
|
14264
|
+
"remarks": "Used to prune FileSystem of directories\nwith old build ids and prune S3 based on metadat and `msTtl`",
|
|
14265
|
+
"stability": "stable",
|
|
14266
|
+
"summary": "Build ID of current deployment."
|
|
14267
|
+
},
|
|
14268
|
+
"immutable": true,
|
|
14269
|
+
"locationInModule": {
|
|
14270
|
+
"filename": "src/nextjs-post-deploy.ts",
|
|
14271
|
+
"line": 69
|
|
14272
|
+
},
|
|
14273
|
+
"name": "buildId",
|
|
14274
|
+
"type": {
|
|
14275
|
+
"primitive": "string"
|
|
14276
|
+
}
|
|
14277
|
+
},
|
|
14278
|
+
{
|
|
14279
|
+
"abstract": true,
|
|
14280
|
+
"docs": {
|
|
14281
|
+
"see": "{@link NextjsBuild.buildImageDigest }",
|
|
14282
|
+
"stability": "stable"
|
|
14283
|
+
},
|
|
14284
|
+
"immutable": true,
|
|
14285
|
+
"locationInModule": {
|
|
14286
|
+
"filename": "src/nextjs-post-deploy.ts",
|
|
14287
|
+
"line": 73
|
|
14288
|
+
},
|
|
14289
|
+
"name": "buildImageDigest",
|
|
14290
|
+
"type": {
|
|
14291
|
+
"primitive": "string"
|
|
14292
|
+
}
|
|
14293
|
+
},
|
|
14294
|
+
{
|
|
14295
|
+
"abstract": true,
|
|
14296
|
+
"docs": {
|
|
14297
|
+
"default": "(1000 * 60 * 60 * 24 * 30).toString()",
|
|
14298
|
+
"remarks": "Must be string because of CloudFormation Custom Resource limitation",
|
|
14299
|
+
"stability": "stable",
|
|
14300
|
+
"summary": "Time to live in milliseconds."
|
|
14301
|
+
},
|
|
14302
|
+
"immutable": true,
|
|
14303
|
+
"locationInModule": {
|
|
14304
|
+
"filename": "src/nextjs-post-deploy.ts",
|
|
14305
|
+
"line": 95
|
|
14306
|
+
},
|
|
14307
|
+
"name": "msTtl",
|
|
14308
|
+
"type": {
|
|
14309
|
+
"primitive": "string"
|
|
14310
|
+
}
|
|
14311
|
+
},
|
|
14312
|
+
{
|
|
14313
|
+
"abstract": true,
|
|
14314
|
+
"docs": {
|
|
14315
|
+
"default": "{\n distributionId: this.props.distribution?.distributionId,\n invalidationBatch: {\n callerReference: new Date().toISOString(),\n paths: {\n quantity: 1,\n items: [\"/*\"], // invalidate all paths\n },\n },\n }",
|
|
14316
|
+
"see": "https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/cloudfront/command/CreateInvalidationCommand/",
|
|
14317
|
+
"stability": "stable"
|
|
14318
|
+
},
|
|
14319
|
+
"immutable": true,
|
|
14320
|
+
"locationInModule": {
|
|
14321
|
+
"filename": "src/nextjs-post-deploy.ts",
|
|
14322
|
+
"line": 88
|
|
14323
|
+
},
|
|
14324
|
+
"name": "createInvalidationCommandInput",
|
|
14325
|
+
"optional": true,
|
|
14326
|
+
"type": {
|
|
14327
|
+
"collection": {
|
|
14328
|
+
"elementtype": {
|
|
14329
|
+
"primitive": "any"
|
|
14330
|
+
},
|
|
14331
|
+
"kind": "map"
|
|
14332
|
+
}
|
|
14333
|
+
}
|
|
14334
|
+
},
|
|
14335
|
+
{
|
|
14336
|
+
"abstract": true,
|
|
14337
|
+
"docs": {
|
|
14338
|
+
"stability": "stable"
|
|
14339
|
+
},
|
|
14340
|
+
"immutable": true,
|
|
14341
|
+
"locationInModule": {
|
|
14342
|
+
"filename": "src/nextjs-post-deploy.ts",
|
|
14343
|
+
"line": 96
|
|
14344
|
+
},
|
|
14345
|
+
"name": "staticAssetsBucketName",
|
|
14346
|
+
"optional": true,
|
|
14347
|
+
"type": {
|
|
14348
|
+
"primitive": "string"
|
|
14349
|
+
}
|
|
14350
|
+
}
|
|
14351
|
+
],
|
|
14352
|
+
"symbolId": "src/nextjs-post-deploy:PostDeployCustomResourceProperties"
|
|
14353
|
+
},
|
|
13819
14354
|
"cdk-nextjs.PublicDirEntry": {
|
|
13820
14355
|
"assembly": "cdk-nextjs",
|
|
13821
14356
|
"datatype": true,
|
|
@@ -13826,7 +14361,7 @@
|
|
|
13826
14361
|
"kind": "interface",
|
|
13827
14362
|
"locationInModule": {
|
|
13828
14363
|
"filename": "src/nextjs-build/nextjs-build.ts",
|
|
13829
|
-
"line":
|
|
14364
|
+
"line": 128
|
|
13830
14365
|
},
|
|
13831
14366
|
"name": "PublicDirEntry",
|
|
13832
14367
|
"properties": [
|
|
@@ -13838,7 +14373,7 @@
|
|
|
13838
14373
|
"immutable": true,
|
|
13839
14374
|
"locationInModule": {
|
|
13840
14375
|
"filename": "src/nextjs-build/nextjs-build.ts",
|
|
13841
|
-
"line":
|
|
14376
|
+
"line": 130
|
|
13842
14377
|
},
|
|
13843
14378
|
"name": "isDirectory",
|
|
13844
14379
|
"type": {
|
|
@@ -13853,7 +14388,7 @@
|
|
|
13853
14388
|
"immutable": true,
|
|
13854
14389
|
"locationInModule": {
|
|
13855
14390
|
"filename": "src/nextjs-build/nextjs-build.ts",
|
|
13856
|
-
"line":
|
|
14391
|
+
"line": 129
|
|
13857
14392
|
},
|
|
13858
14393
|
"name": "name",
|
|
13859
14394
|
"type": {
|
|
@@ -13864,6 +14399,6 @@
|
|
|
13864
14399
|
"symbolId": "src/nextjs-build/nextjs-build:PublicDirEntry"
|
|
13865
14400
|
}
|
|
13866
14401
|
},
|
|
13867
|
-
"version": "0.
|
|
13868
|
-
"fingerprint": "
|
|
14402
|
+
"version": "0.4.0",
|
|
14403
|
+
"fingerprint": "4BMbDbnE3wm31xFUiRG6Nx06RUS6fflygGaMIXTGK70="
|
|
13869
14404
|
}
|