cdk-nextjs 0.3.11 → 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 +1248 -748
- package/API.md +1033 -531
- package/README.md +1 -2
- package/assets/lambdas/assets-deployment/assets-deployment.lambda/assets-deployment.Dockerfile +12 -8
- package/assets/lambdas/assets-deployment/assets-deployment.lambda/index.js +67 -56
- 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/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 +4 -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 +14 -8
- 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 +15 -51
- package/lib/nextjs-assets-deployment.js +27 -25
- 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 +4 -4
- 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 +25 -15
- package/lib/root-constructs/nextjs-global-functions.d.ts +8 -11
- package/lib/root-constructs/nextjs-global-functions.js +25 -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 +15 -17
- 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.8.
|
|
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 { 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"
|
|
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": 137
|
|
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,7 +4617,7 @@
|
|
|
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": {
|
|
@@ -4590,7 +4634,7 @@
|
|
|
4590
4634
|
"immutable": true,
|
|
4591
4635
|
"locationInModule": {
|
|
4592
4636
|
"filename": "src/nextjs-assets-deployment.ts",
|
|
4593
|
-
"line":
|
|
4637
|
+
"line": 43
|
|
4594
4638
|
},
|
|
4595
4639
|
"name": "basePath",
|
|
4596
4640
|
"optional": true,
|
|
@@ -4602,12 +4646,13 @@
|
|
|
4602
4646
|
"abstract": true,
|
|
4603
4647
|
"docs": {
|
|
4604
4648
|
"default": "true",
|
|
4605
|
-
"stability": "stable"
|
|
4649
|
+
"stability": "stable",
|
|
4650
|
+
"summary": "If true, logs details in custom resource lambda."
|
|
4606
4651
|
},
|
|
4607
4652
|
"immutable": true,
|
|
4608
4653
|
"locationInModule": {
|
|
4609
4654
|
"filename": "src/nextjs-assets-deployment.ts",
|
|
4610
|
-
"line":
|
|
4655
|
+
"line": 53
|
|
4611
4656
|
},
|
|
4612
4657
|
"name": "debug",
|
|
4613
4658
|
"optional": true,
|
|
@@ -4623,7 +4668,7 @@
|
|
|
4623
4668
|
"immutable": true,
|
|
4624
4669
|
"locationInModule": {
|
|
4625
4670
|
"filename": "src/nextjs-assets-deployment.ts",
|
|
4626
|
-
"line":
|
|
4671
|
+
"line": 56
|
|
4627
4672
|
},
|
|
4628
4673
|
"name": "overrides",
|
|
4629
4674
|
"optional": true,
|
|
@@ -4634,15 +4679,15 @@
|
|
|
4634
4679
|
{
|
|
4635
4680
|
"abstract": true,
|
|
4636
4681
|
"docs": {
|
|
4637
|
-
"see": "{@link NextjsBaseProps.
|
|
4682
|
+
"see": "{@link NextjsBaseProps.relativePathToPackage }",
|
|
4638
4683
|
"stability": "stable"
|
|
4639
4684
|
},
|
|
4640
4685
|
"immutable": true,
|
|
4641
4686
|
"locationInModule": {
|
|
4642
4687
|
"filename": "src/nextjs-assets-deployment.ts",
|
|
4643
|
-
"line":
|
|
4688
|
+
"line": 60
|
|
4644
4689
|
},
|
|
4645
|
-
"name": "
|
|
4690
|
+
"name": "relativePathToPackage",
|
|
4646
4691
|
"optional": true,
|
|
4647
4692
|
"type": {
|
|
4648
4693
|
"primitive": "string"
|
|
@@ -4657,7 +4702,7 @@
|
|
|
4657
4702
|
"immutable": true,
|
|
4658
4703
|
"locationInModule": {
|
|
4659
4704
|
"filename": "src/nextjs-assets-deployment.ts",
|
|
4660
|
-
"line":
|
|
4705
|
+
"line": 64
|
|
4661
4706
|
},
|
|
4662
4707
|
"name": "staticAssetsBucket",
|
|
4663
4708
|
"optional": true,
|
|
@@ -4685,14 +4730,15 @@
|
|
|
4685
4730
|
{
|
|
4686
4731
|
"abstract": true,
|
|
4687
4732
|
"docs": {
|
|
4688
|
-
"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.",
|
|
4689
4735
|
"stability": "stable",
|
|
4690
|
-
"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}."
|
|
4691
4737
|
},
|
|
4692
4738
|
"immutable": true,
|
|
4693
4739
|
"locationInModule": {
|
|
4694
4740
|
"filename": "src/root-constructs/nextjs-base-props.ts",
|
|
4695
|
-
"line":
|
|
4741
|
+
"line": 22
|
|
4696
4742
|
},
|
|
4697
4743
|
"name": "buildContext",
|
|
4698
4744
|
"type": {
|
|
@@ -4709,7 +4755,7 @@
|
|
|
4709
4755
|
"immutable": true,
|
|
4710
4756
|
"locationInModule": {
|
|
4711
4757
|
"filename": "src/root-constructs/nextjs-base-props.ts",
|
|
4712
|
-
"line":
|
|
4758
|
+
"line": 34
|
|
4713
4759
|
},
|
|
4714
4760
|
"name": "healthCheckPath",
|
|
4715
4761
|
"type": {
|
|
@@ -4738,14 +4784,31 @@
|
|
|
4738
4784
|
"abstract": true,
|
|
4739
4785
|
"docs": {
|
|
4740
4786
|
"example": "\"./packages/ui\"",
|
|
4741
|
-
"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.",
|
|
4742
4788
|
"stability": "stable",
|
|
4743
4789
|
"summary": "Use this if building in monorepo."
|
|
4744
4790
|
},
|
|
4745
4791
|
"immutable": true,
|
|
4746
4792
|
"locationInModule": {
|
|
4747
4793
|
"filename": "src/root-constructs/nextjs-base-props.ts",
|
|
4748
|
-
"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
|
|
4749
4812
|
},
|
|
4750
4813
|
"name": "relativePathToWorkspace",
|
|
4751
4814
|
"optional": true,
|
|
@@ -4773,7 +4836,7 @@
|
|
|
4773
4836
|
},
|
|
4774
4837
|
"locationInModule": {
|
|
4775
4838
|
"filename": "src/nextjs-build/nextjs-build.ts",
|
|
4776
|
-
"line":
|
|
4839
|
+
"line": 189
|
|
4777
4840
|
},
|
|
4778
4841
|
"parameters": [
|
|
4779
4842
|
{
|
|
@@ -4799,37 +4862,49 @@
|
|
|
4799
4862
|
"kind": "class",
|
|
4800
4863
|
"locationInModule": {
|
|
4801
4864
|
"filename": "src/nextjs-build/nextjs-build.ts",
|
|
4802
|
-
"line":
|
|
4865
|
+
"line": 137
|
|
4803
4866
|
},
|
|
4804
4867
|
"name": "NextjsBuild",
|
|
4805
4868
|
"properties": [
|
|
4806
4869
|
{
|
|
4807
4870
|
"docs": {
|
|
4808
|
-
"remarks": "Useful\nfor passing to properties of custom resources that depend upon the builder\nimage to re-run when build image changes.",
|
|
4809
4871
|
"stability": "stable",
|
|
4810
|
-
"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."
|
|
4811
4873
|
},
|
|
4812
4874
|
"locationInModule": {
|
|
4813
4875
|
"filename": "src/nextjs-build/nextjs-build.ts",
|
|
4814
|
-
"line":
|
|
4876
|
+
"line": 144
|
|
4815
4877
|
},
|
|
4816
|
-
"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",
|
|
4817
4893
|
"type": {
|
|
4818
4894
|
"primitive": "string"
|
|
4819
4895
|
}
|
|
4820
4896
|
},
|
|
4821
4897
|
{
|
|
4822
4898
|
"docs": {
|
|
4823
|
-
"remarks": "
|
|
4824
|
-
"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.",
|
|
4825
4900
|
"stability": "stable",
|
|
4826
|
-
"summary": "
|
|
4901
|
+
"summary": "Hash of builder image which will change whenever the image changes."
|
|
4827
4902
|
},
|
|
4828
4903
|
"locationInModule": {
|
|
4829
4904
|
"filename": "src/nextjs-build/nextjs-build.ts",
|
|
4830
|
-
"line":
|
|
4905
|
+
"line": 154
|
|
4831
4906
|
},
|
|
4832
|
-
"name": "
|
|
4907
|
+
"name": "buildImageDigest",
|
|
4833
4908
|
"type": {
|
|
4834
4909
|
"primitive": "string"
|
|
4835
4910
|
}
|
|
@@ -4841,7 +4916,7 @@
|
|
|
4841
4916
|
},
|
|
4842
4917
|
"locationInModule": {
|
|
4843
4918
|
"filename": "src/nextjs-build/nextjs-build.ts",
|
|
4844
|
-
"line":
|
|
4919
|
+
"line": 166
|
|
4845
4920
|
},
|
|
4846
4921
|
"name": "imageForNextjsAssetsDeployment",
|
|
4847
4922
|
"type": {
|
|
@@ -4857,7 +4932,7 @@
|
|
|
4857
4932
|
},
|
|
4858
4933
|
"locationInModule": {
|
|
4859
4934
|
"filename": "src/nextjs-build/nextjs-build.ts",
|
|
4860
|
-
"line":
|
|
4935
|
+
"line": 171
|
|
4861
4936
|
},
|
|
4862
4937
|
"name": "publicDirEntries",
|
|
4863
4938
|
"type": {
|
|
@@ -4877,7 +4952,7 @@
|
|
|
4877
4952
|
},
|
|
4878
4953
|
"locationInModule": {
|
|
4879
4954
|
"filename": "src/nextjs-build/nextjs-build.ts",
|
|
4880
|
-
"line":
|
|
4955
|
+
"line": 178
|
|
4881
4956
|
},
|
|
4882
4957
|
"name": "relativePathToEntrypoint",
|
|
4883
4958
|
"type": {
|
|
@@ -4891,7 +4966,7 @@
|
|
|
4891
4966
|
},
|
|
4892
4967
|
"locationInModule": {
|
|
4893
4968
|
"filename": "src/nextjs-build/nextjs-build.ts",
|
|
4894
|
-
"line":
|
|
4969
|
+
"line": 158
|
|
4895
4970
|
},
|
|
4896
4971
|
"name": "imageForNextjsContainers",
|
|
4897
4972
|
"optional": true,
|
|
@@ -4906,7 +4981,7 @@
|
|
|
4906
4981
|
},
|
|
4907
4982
|
"locationInModule": {
|
|
4908
4983
|
"filename": "src/nextjs-build/nextjs-build.ts",
|
|
4909
|
-
"line":
|
|
4984
|
+
"line": 162
|
|
4910
4985
|
},
|
|
4911
4986
|
"name": "imageForNextjsFunctions",
|
|
4912
4987
|
"optional": true,
|
|
@@ -4927,10 +5002,64 @@
|
|
|
4927
5002
|
"kind": "interface",
|
|
4928
5003
|
"locationInModule": {
|
|
4929
5004
|
"filename": "src/nextjs-build/nextjs-build.ts",
|
|
4930
|
-
"line":
|
|
5005
|
+
"line": 71
|
|
4931
5006
|
},
|
|
4932
5007
|
"name": "NextjsBuildOverrides",
|
|
4933
5008
|
"properties": [
|
|
5009
|
+
{
|
|
5010
|
+
"abstract": true,
|
|
5011
|
+
"docs": {
|
|
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."
|
|
5015
|
+
},
|
|
5016
|
+
"immutable": true,
|
|
5017
|
+
"locationInModule": {
|
|
5018
|
+
"filename": "src/nextjs-build/nextjs-build.ts",
|
|
5019
|
+
"line": 94
|
|
5020
|
+
},
|
|
5021
|
+
"name": "assetsDeploymentImageBuildContext",
|
|
5022
|
+
"optional": true,
|
|
5023
|
+
"type": {
|
|
5024
|
+
"primitive": "string"
|
|
5025
|
+
}
|
|
5026
|
+
},
|
|
5027
|
+
{
|
|
5028
|
+
"abstract": true,
|
|
5029
|
+
"docs": {
|
|
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."
|
|
5033
|
+
},
|
|
5034
|
+
"immutable": true,
|
|
5035
|
+
"locationInModule": {
|
|
5036
|
+
"filename": "src/nextjs-build/nextjs-build.ts",
|
|
5037
|
+
"line": 104
|
|
5038
|
+
},
|
|
5039
|
+
"name": "containersImageBuildContext",
|
|
5040
|
+
"optional": true,
|
|
5041
|
+
"type": {
|
|
5042
|
+
"primitive": "string"
|
|
5043
|
+
}
|
|
5044
|
+
},
|
|
5045
|
+
{
|
|
5046
|
+
"abstract": true,
|
|
5047
|
+
"docs": {
|
|
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."
|
|
5051
|
+
},
|
|
5052
|
+
"immutable": true,
|
|
5053
|
+
"locationInModule": {
|
|
5054
|
+
"filename": "src/nextjs-build/nextjs-build.ts",
|
|
5055
|
+
"line": 84
|
|
5056
|
+
},
|
|
5057
|
+
"name": "functionsImageBuildContext",
|
|
5058
|
+
"optional": true,
|
|
5059
|
+
"type": {
|
|
5060
|
+
"primitive": "string"
|
|
5061
|
+
}
|
|
5062
|
+
},
|
|
4934
5063
|
{
|
|
4935
5064
|
"abstract": true,
|
|
4936
5065
|
"docs": {
|
|
@@ -4939,7 +5068,7 @@
|
|
|
4939
5068
|
"immutable": true,
|
|
4940
5069
|
"locationInModule": {
|
|
4941
5070
|
"filename": "src/nextjs-build/nextjs-build.ts",
|
|
4942
|
-
"line":
|
|
5071
|
+
"line": 74
|
|
4943
5072
|
},
|
|
4944
5073
|
"name": "nextjsAssetDeploymentAssetImageCodeProps",
|
|
4945
5074
|
"optional": true,
|
|
@@ -4955,7 +5084,7 @@
|
|
|
4955
5084
|
"immutable": true,
|
|
4956
5085
|
"locationInModule": {
|
|
4957
5086
|
"filename": "src/nextjs-build/nextjs-build.ts",
|
|
4958
|
-
"line":
|
|
5087
|
+
"line": 72
|
|
4959
5088
|
},
|
|
4960
5089
|
"name": "nextjsContainersDockerImageAssetProps",
|
|
4961
5090
|
"optional": true,
|
|
@@ -4971,7 +5100,7 @@
|
|
|
4971
5100
|
"immutable": true,
|
|
4972
5101
|
"locationInModule": {
|
|
4973
5102
|
"filename": "src/nextjs-build/nextjs-build.ts",
|
|
4974
|
-
"line":
|
|
5103
|
+
"line": 73
|
|
4975
5104
|
},
|
|
4976
5105
|
"name": "nextjsFunctionsAssetImageCodeProps",
|
|
4977
5106
|
"optional": true,
|
|
@@ -4992,7 +5121,7 @@
|
|
|
4992
5121
|
"kind": "interface",
|
|
4993
5122
|
"locationInModule": {
|
|
4994
5123
|
"filename": "src/nextjs-build/nextjs-build.ts",
|
|
4995
|
-
"line":
|
|
5124
|
+
"line": 107
|
|
4996
5125
|
},
|
|
4997
5126
|
"name": "NextjsBuildProps",
|
|
4998
5127
|
"properties": [
|
|
@@ -5005,7 +5134,7 @@
|
|
|
5005
5134
|
"immutable": true,
|
|
5006
5135
|
"locationInModule": {
|
|
5007
5136
|
"filename": "src/nextjs-build/nextjs-build.ts",
|
|
5008
|
-
"line":
|
|
5137
|
+
"line": 115
|
|
5009
5138
|
},
|
|
5010
5139
|
"name": "buildContext",
|
|
5011
5140
|
"type": {
|
|
@@ -5020,7 +5149,7 @@
|
|
|
5020
5149
|
"immutable": true,
|
|
5021
5150
|
"locationInModule": {
|
|
5022
5151
|
"filename": "src/nextjs-build/nextjs-build.ts",
|
|
5023
|
-
"line":
|
|
5152
|
+
"line": 124
|
|
5024
5153
|
},
|
|
5025
5154
|
"name": "nextjsType",
|
|
5026
5155
|
"type": {
|
|
@@ -5036,7 +5165,7 @@
|
|
|
5036
5165
|
"immutable": true,
|
|
5037
5166
|
"locationInModule": {
|
|
5038
5167
|
"filename": "src/nextjs-build/nextjs-build.ts",
|
|
5039
|
-
"line":
|
|
5168
|
+
"line": 111
|
|
5040
5169
|
},
|
|
5041
5170
|
"name": "buildCommand",
|
|
5042
5171
|
"optional": true,
|
|
@@ -5052,7 +5181,7 @@
|
|
|
5052
5181
|
"immutable": true,
|
|
5053
5182
|
"locationInModule": {
|
|
5054
5183
|
"filename": "src/nextjs-build/nextjs-build.ts",
|
|
5055
|
-
"line":
|
|
5184
|
+
"line": 119
|
|
5056
5185
|
},
|
|
5057
5186
|
"name": "builderImageProps",
|
|
5058
5187
|
"optional": true,
|
|
@@ -5068,7 +5197,7 @@
|
|
|
5068
5197
|
"immutable": true,
|
|
5069
5198
|
"locationInModule": {
|
|
5070
5199
|
"filename": "src/nextjs-build/nextjs-build.ts",
|
|
5071
|
-
"line":
|
|
5200
|
+
"line": 125
|
|
5072
5201
|
},
|
|
5073
5202
|
"name": "overrides",
|
|
5074
5203
|
"optional": true,
|
|
@@ -5079,15 +5208,15 @@
|
|
|
5079
5208
|
{
|
|
5080
5209
|
"abstract": true,
|
|
5081
5210
|
"docs": {
|
|
5082
|
-
"see": "{@link NextjsBaseProps.
|
|
5211
|
+
"see": "{@link NextjsBaseProps.relativePathToPackage }",
|
|
5083
5212
|
"stability": "stable"
|
|
5084
5213
|
},
|
|
5085
5214
|
"immutable": true,
|
|
5086
5215
|
"locationInModule": {
|
|
5087
5216
|
"filename": "src/nextjs-build/nextjs-build.ts",
|
|
5088
|
-
"line":
|
|
5217
|
+
"line": 123
|
|
5089
5218
|
},
|
|
5090
|
-
"name": "
|
|
5219
|
+
"name": "relativePathToPackage",
|
|
5091
5220
|
"optional": true,
|
|
5092
5221
|
"type": {
|
|
5093
5222
|
"primitive": "string"
|
|
@@ -5135,21 +5264,6 @@
|
|
|
5135
5264
|
"filename": "src/nextjs-compute/nextjs-compute-base-props.ts",
|
|
5136
5265
|
"line": 6
|
|
5137
5266
|
},
|
|
5138
|
-
"name": "containerMountPathForEfs",
|
|
5139
|
-
"type": {
|
|
5140
|
-
"primitive": "string"
|
|
5141
|
-
}
|
|
5142
|
-
},
|
|
5143
|
-
{
|
|
5144
|
-
"abstract": true,
|
|
5145
|
-
"docs": {
|
|
5146
|
-
"stability": "stable"
|
|
5147
|
-
},
|
|
5148
|
-
"immutable": true,
|
|
5149
|
-
"locationInModule": {
|
|
5150
|
-
"filename": "src/nextjs-compute/nextjs-compute-base-props.ts",
|
|
5151
|
-
"line": 7
|
|
5152
|
-
},
|
|
5153
5267
|
"name": "healthCheckPath",
|
|
5154
5268
|
"type": {
|
|
5155
5269
|
"primitive": "string"
|
|
@@ -5163,7 +5277,7 @@
|
|
|
5163
5277
|
"immutable": true,
|
|
5164
5278
|
"locationInModule": {
|
|
5165
5279
|
"filename": "src/nextjs-compute/nextjs-compute-base-props.ts",
|
|
5166
|
-
"line":
|
|
5280
|
+
"line": 7
|
|
5167
5281
|
},
|
|
5168
5282
|
"name": "vpc",
|
|
5169
5283
|
"type": {
|
|
@@ -5187,7 +5301,7 @@
|
|
|
5187
5301
|
},
|
|
5188
5302
|
"locationInModule": {
|
|
5189
5303
|
"filename": "src/nextjs-compute/nextjs-containers.ts",
|
|
5190
|
-
"line":
|
|
5304
|
+
"line": 56
|
|
5191
5305
|
},
|
|
5192
5306
|
"parameters": [
|
|
5193
5307
|
{
|
|
@@ -5213,7 +5327,7 @@
|
|
|
5213
5327
|
"kind": "class",
|
|
5214
5328
|
"locationInModule": {
|
|
5215
5329
|
"filename": "src/nextjs-compute/nextjs-containers.ts",
|
|
5216
|
-
"line":
|
|
5330
|
+
"line": 49
|
|
5217
5331
|
},
|
|
5218
5332
|
"name": "NextjsContainers",
|
|
5219
5333
|
"properties": [
|
|
@@ -5223,7 +5337,7 @@
|
|
|
5223
5337
|
},
|
|
5224
5338
|
"locationInModule": {
|
|
5225
5339
|
"filename": "src/nextjs-compute/nextjs-containers.ts",
|
|
5226
|
-
"line":
|
|
5340
|
+
"line": 50
|
|
5227
5341
|
},
|
|
5228
5342
|
"name": "albFargateService",
|
|
5229
5343
|
"type": {
|
|
@@ -5236,7 +5350,7 @@
|
|
|
5236
5350
|
},
|
|
5237
5351
|
"locationInModule": {
|
|
5238
5352
|
"filename": "src/nextjs-compute/nextjs-containers.ts",
|
|
5239
|
-
"line":
|
|
5353
|
+
"line": 51
|
|
5240
5354
|
},
|
|
5241
5355
|
"name": "ecsCluster",
|
|
5242
5356
|
"type": {
|
|
@@ -5249,7 +5363,7 @@
|
|
|
5249
5363
|
},
|
|
5250
5364
|
"locationInModule": {
|
|
5251
5365
|
"filename": "src/nextjs-compute/nextjs-containers.ts",
|
|
5252
|
-
"line":
|
|
5366
|
+
"line": 52
|
|
5253
5367
|
},
|
|
5254
5368
|
"name": "url",
|
|
5255
5369
|
"type": {
|
|
@@ -5269,7 +5383,7 @@
|
|
|
5269
5383
|
"kind": "interface",
|
|
5270
5384
|
"locationInModule": {
|
|
5271
5385
|
"filename": "src/nextjs-compute/nextjs-containers.ts",
|
|
5272
|
-
"line":
|
|
5386
|
+
"line": 30
|
|
5273
5387
|
},
|
|
5274
5388
|
"name": "NextjsContainersOverrides",
|
|
5275
5389
|
"properties": [
|
|
@@ -5281,7 +5395,7 @@
|
|
|
5281
5395
|
"immutable": true,
|
|
5282
5396
|
"locationInModule": {
|
|
5283
5397
|
"filename": "src/nextjs-compute/nextjs-containers.ts",
|
|
5284
|
-
"line":
|
|
5398
|
+
"line": 32
|
|
5285
5399
|
},
|
|
5286
5400
|
"name": "albFargateServiceProps",
|
|
5287
5401
|
"optional": true,
|
|
@@ -5297,7 +5411,7 @@
|
|
|
5297
5411
|
"immutable": true,
|
|
5298
5412
|
"locationInModule": {
|
|
5299
5413
|
"filename": "src/nextjs-compute/nextjs-containers.ts",
|
|
5300
|
-
"line":
|
|
5414
|
+
"line": 31
|
|
5301
5415
|
},
|
|
5302
5416
|
"name": "ecsClusterProps",
|
|
5303
5417
|
"optional": true,
|
|
@@ -5313,7 +5427,7 @@
|
|
|
5313
5427
|
"immutable": true,
|
|
5314
5428
|
"locationInModule": {
|
|
5315
5429
|
"filename": "src/nextjs-compute/nextjs-containers.ts",
|
|
5316
|
-
"line":
|
|
5430
|
+
"line": 33
|
|
5317
5431
|
},
|
|
5318
5432
|
"name": "taskImageOptions",
|
|
5319
5433
|
"optional": true,
|
|
@@ -5337,7 +5451,7 @@
|
|
|
5337
5451
|
"kind": "interface",
|
|
5338
5452
|
"locationInModule": {
|
|
5339
5453
|
"filename": "src/nextjs-compute/nextjs-containers.ts",
|
|
5340
|
-
"line":
|
|
5454
|
+
"line": 36
|
|
5341
5455
|
},
|
|
5342
5456
|
"name": "NextjsContainersProps",
|
|
5343
5457
|
"properties": [
|
|
@@ -5349,7 +5463,22 @@
|
|
|
5349
5463
|
"immutable": true,
|
|
5350
5464
|
"locationInModule": {
|
|
5351
5465
|
"filename": "src/nextjs-compute/nextjs-containers.ts",
|
|
5352
|
-
"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
|
|
5353
5482
|
},
|
|
5354
5483
|
"name": "dockerImageAsset",
|
|
5355
5484
|
"type": {
|
|
@@ -5364,7 +5493,7 @@
|
|
|
5364
5493
|
"immutable": true,
|
|
5365
5494
|
"locationInModule": {
|
|
5366
5495
|
"filename": "src/nextjs-compute/nextjs-containers.ts",
|
|
5367
|
-
"line":
|
|
5496
|
+
"line": 38
|
|
5368
5497
|
},
|
|
5369
5498
|
"name": "fileSystem",
|
|
5370
5499
|
"type": {
|
|
@@ -5379,7 +5508,7 @@
|
|
|
5379
5508
|
"immutable": true,
|
|
5380
5509
|
"locationInModule": {
|
|
5381
5510
|
"filename": "src/nextjs-compute/nextjs-containers.ts",
|
|
5382
|
-
"line":
|
|
5511
|
+
"line": 39
|
|
5383
5512
|
},
|
|
5384
5513
|
"name": "nextjsType",
|
|
5385
5514
|
"type": {
|
|
@@ -5394,7 +5523,7 @@
|
|
|
5394
5523
|
"immutable": true,
|
|
5395
5524
|
"locationInModule": {
|
|
5396
5525
|
"filename": "src/nextjs-compute/nextjs-containers.ts",
|
|
5397
|
-
"line":
|
|
5526
|
+
"line": 41
|
|
5398
5527
|
},
|
|
5399
5528
|
"name": "relativeEntrypointPath",
|
|
5400
5529
|
"type": {
|
|
@@ -5409,7 +5538,7 @@
|
|
|
5409
5538
|
"immutable": true,
|
|
5410
5539
|
"locationInModule": {
|
|
5411
5540
|
"filename": "src/nextjs-compute/nextjs-containers.ts",
|
|
5412
|
-
"line":
|
|
5541
|
+
"line": 40
|
|
5413
5542
|
},
|
|
5414
5543
|
"name": "overrides",
|
|
5415
5544
|
"optional": true,
|
|
@@ -6062,7 +6191,7 @@
|
|
|
6062
6191
|
},
|
|
6063
6192
|
"locationInModule": {
|
|
6064
6193
|
"filename": "src/nextjs-compute/nextjs-functions.ts",
|
|
6065
|
-
"line":
|
|
6194
|
+
"line": 42
|
|
6066
6195
|
},
|
|
6067
6196
|
"parameters": [
|
|
6068
6197
|
{
|
|
@@ -6088,7 +6217,7 @@
|
|
|
6088
6217
|
"kind": "class",
|
|
6089
6218
|
"locationInModule": {
|
|
6090
6219
|
"filename": "src/nextjs-compute/nextjs-functions.ts",
|
|
6091
|
-
"line":
|
|
6220
|
+
"line": 36
|
|
6092
6221
|
},
|
|
6093
6222
|
"name": "NextjsFunctions",
|
|
6094
6223
|
"properties": [
|
|
@@ -6098,7 +6227,7 @@
|
|
|
6098
6227
|
},
|
|
6099
6228
|
"locationInModule": {
|
|
6100
6229
|
"filename": "src/nextjs-compute/nextjs-functions.ts",
|
|
6101
|
-
"line":
|
|
6230
|
+
"line": 37
|
|
6102
6231
|
},
|
|
6103
6232
|
"name": "function",
|
|
6104
6233
|
"type": {
|
|
@@ -6111,7 +6240,7 @@
|
|
|
6111
6240
|
},
|
|
6112
6241
|
"locationInModule": {
|
|
6113
6242
|
"filename": "src/nextjs-compute/nextjs-functions.ts",
|
|
6114
|
-
"line":
|
|
6243
|
+
"line": 38
|
|
6115
6244
|
},
|
|
6116
6245
|
"name": "functionUrl",
|
|
6117
6246
|
"type": {
|
|
@@ -6131,7 +6260,7 @@
|
|
|
6131
6260
|
"kind": "interface",
|
|
6132
6261
|
"locationInModule": {
|
|
6133
6262
|
"filename": "src/nextjs-compute/nextjs-functions.ts",
|
|
6134
|
-
"line":
|
|
6263
|
+
"line": 22
|
|
6135
6264
|
},
|
|
6136
6265
|
"name": "NextjsFunctionsOverrides",
|
|
6137
6266
|
"properties": [
|
|
@@ -6143,7 +6272,7 @@
|
|
|
6143
6272
|
"immutable": true,
|
|
6144
6273
|
"locationInModule": {
|
|
6145
6274
|
"filename": "src/nextjs-compute/nextjs-functions.ts",
|
|
6146
|
-
"line":
|
|
6275
|
+
"line": 23
|
|
6147
6276
|
},
|
|
6148
6277
|
"name": "dockerImageFunctionProps",
|
|
6149
6278
|
"optional": true,
|
|
@@ -6159,7 +6288,7 @@
|
|
|
6159
6288
|
"immutable": true,
|
|
6160
6289
|
"locationInModule": {
|
|
6161
6290
|
"filename": "src/nextjs-compute/nextjs-functions.ts",
|
|
6162
|
-
"line":
|
|
6291
|
+
"line": 24
|
|
6163
6292
|
},
|
|
6164
6293
|
"name": "functionUrlProps",
|
|
6165
6294
|
"optional": true,
|
|
@@ -6183,7 +6312,7 @@
|
|
|
6183
6312
|
"kind": "interface",
|
|
6184
6313
|
"locationInModule": {
|
|
6185
6314
|
"filename": "src/nextjs-compute/nextjs-functions.ts",
|
|
6186
|
-
"line":
|
|
6315
|
+
"line": 27
|
|
6187
6316
|
},
|
|
6188
6317
|
"name": "NextjsFunctionsProps",
|
|
6189
6318
|
"properties": [
|
|
@@ -6195,7 +6324,22 @@
|
|
|
6195
6324
|
"immutable": true,
|
|
6196
6325
|
"locationInModule": {
|
|
6197
6326
|
"filename": "src/nextjs-compute/nextjs-functions.ts",
|
|
6198
|
-
"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
|
|
6199
6343
|
},
|
|
6200
6344
|
"name": "dockerImageCode",
|
|
6201
6345
|
"type": {
|
|
@@ -6210,7 +6354,7 @@
|
|
|
6210
6354
|
"immutable": true,
|
|
6211
6355
|
"locationInModule": {
|
|
6212
6356
|
"filename": "src/nextjs-compute/nextjs-functions.ts",
|
|
6213
|
-
"line":
|
|
6357
|
+
"line": 29
|
|
6214
6358
|
},
|
|
6215
6359
|
"name": "overrides",
|
|
6216
6360
|
"optional": true,
|
|
@@ -6235,7 +6379,7 @@
|
|
|
6235
6379
|
},
|
|
6236
6380
|
"locationInModule": {
|
|
6237
6381
|
"filename": "src/root-constructs/nextjs-global-containers.ts",
|
|
6238
|
-
"line":
|
|
6382
|
+
"line": 87
|
|
6239
6383
|
},
|
|
6240
6384
|
"parameters": [
|
|
6241
6385
|
{
|
|
@@ -6261,7 +6405,7 @@
|
|
|
6261
6405
|
"kind": "class",
|
|
6262
6406
|
"locationInModule": {
|
|
6263
6407
|
"filename": "src/root-constructs/nextjs-global-containers.ts",
|
|
6264
|
-
"line":
|
|
6408
|
+
"line": 74
|
|
6265
6409
|
},
|
|
6266
6410
|
"name": "NextjsGlobalContainers",
|
|
6267
6411
|
"properties": [
|
|
@@ -6271,7 +6415,7 @@
|
|
|
6271
6415
|
},
|
|
6272
6416
|
"locationInModule": {
|
|
6273
6417
|
"filename": "src/root-constructs/nextjs-global-containers.ts",
|
|
6274
|
-
"line":
|
|
6418
|
+
"line": 79
|
|
6275
6419
|
},
|
|
6276
6420
|
"name": "nextjsAssetsDeployment",
|
|
6277
6421
|
"type": {
|
|
@@ -6284,7 +6428,7 @@
|
|
|
6284
6428
|
},
|
|
6285
6429
|
"locationInModule": {
|
|
6286
6430
|
"filename": "src/root-constructs/nextjs-global-containers.ts",
|
|
6287
|
-
"line":
|
|
6431
|
+
"line": 75
|
|
6288
6432
|
},
|
|
6289
6433
|
"name": "nextjsBuild",
|
|
6290
6434
|
"type": {
|
|
@@ -6297,7 +6441,7 @@
|
|
|
6297
6441
|
},
|
|
6298
6442
|
"locationInModule": {
|
|
6299
6443
|
"filename": "src/root-constructs/nextjs-global-containers.ts",
|
|
6300
|
-
"line":
|
|
6444
|
+
"line": 80
|
|
6301
6445
|
},
|
|
6302
6446
|
"name": "nextjsContainers",
|
|
6303
6447
|
"type": {
|
|
@@ -6310,7 +6454,7 @@
|
|
|
6310
6454
|
},
|
|
6311
6455
|
"locationInModule": {
|
|
6312
6456
|
"filename": "src/root-constructs/nextjs-global-containers.ts",
|
|
6313
|
-
"line":
|
|
6457
|
+
"line": 81
|
|
6314
6458
|
},
|
|
6315
6459
|
"name": "nextjsDistribution",
|
|
6316
6460
|
"type": {
|
|
@@ -6323,7 +6467,7 @@
|
|
|
6323
6467
|
},
|
|
6324
6468
|
"locationInModule": {
|
|
6325
6469
|
"filename": "src/root-constructs/nextjs-global-containers.ts",
|
|
6326
|
-
"line":
|
|
6470
|
+
"line": 78
|
|
6327
6471
|
},
|
|
6328
6472
|
"name": "nextjsFileSystem",
|
|
6329
6473
|
"type": {
|
|
@@ -6336,11 +6480,11 @@
|
|
|
6336
6480
|
},
|
|
6337
6481
|
"locationInModule": {
|
|
6338
6482
|
"filename": "src/root-constructs/nextjs-global-containers.ts",
|
|
6339
|
-
"line":
|
|
6483
|
+
"line": 82
|
|
6340
6484
|
},
|
|
6341
|
-
"name": "
|
|
6485
|
+
"name": "nextjsPostDeploy",
|
|
6342
6486
|
"type": {
|
|
6343
|
-
"fqn": "cdk-nextjs.
|
|
6487
|
+
"fqn": "cdk-nextjs.NextjsPostDeploy"
|
|
6344
6488
|
}
|
|
6345
6489
|
},
|
|
6346
6490
|
{
|
|
@@ -6349,7 +6493,7 @@
|
|
|
6349
6493
|
},
|
|
6350
6494
|
"locationInModule": {
|
|
6351
6495
|
"filename": "src/root-constructs/nextjs-global-containers.ts",
|
|
6352
|
-
"line":
|
|
6496
|
+
"line": 76
|
|
6353
6497
|
},
|
|
6354
6498
|
"name": "nextjsStaticAssets",
|
|
6355
6499
|
"type": {
|
|
@@ -6362,7 +6506,7 @@
|
|
|
6362
6506
|
},
|
|
6363
6507
|
"locationInModule": {
|
|
6364
6508
|
"filename": "src/root-constructs/nextjs-global-containers.ts",
|
|
6365
|
-
"line":
|
|
6509
|
+
"line": 77
|
|
6366
6510
|
},
|
|
6367
6511
|
"name": "nextjsVpc",
|
|
6368
6512
|
"type": {
|
|
@@ -6385,7 +6529,7 @@
|
|
|
6385
6529
|
"kind": "interface",
|
|
6386
6530
|
"locationInModule": {
|
|
6387
6531
|
"filename": "src/root-constructs/nextjs-global-containers.ts",
|
|
6388
|
-
"line":
|
|
6532
|
+
"line": 31
|
|
6389
6533
|
},
|
|
6390
6534
|
"name": "NextjsGlobalContainersConstructOverrides",
|
|
6391
6535
|
"properties": [
|
|
@@ -6397,7 +6541,7 @@
|
|
|
6397
6541
|
"immutable": true,
|
|
6398
6542
|
"locationInModule": {
|
|
6399
6543
|
"filename": "src/root-constructs/nextjs-global-containers.ts",
|
|
6400
|
-
"line":
|
|
6544
|
+
"line": 33
|
|
6401
6545
|
},
|
|
6402
6546
|
"name": "nextjsContainersProps",
|
|
6403
6547
|
"optional": true,
|
|
@@ -6413,7 +6557,7 @@
|
|
|
6413
6557
|
"immutable": true,
|
|
6414
6558
|
"locationInModule": {
|
|
6415
6559
|
"filename": "src/root-constructs/nextjs-global-containers.ts",
|
|
6416
|
-
"line":
|
|
6560
|
+
"line": 34
|
|
6417
6561
|
},
|
|
6418
6562
|
"name": "nextjsDistributionProps",
|
|
6419
6563
|
"optional": true,
|
|
@@ -6429,39 +6573,7 @@
|
|
|
6429
6573
|
"immutable": true,
|
|
6430
6574
|
"locationInModule": {
|
|
6431
6575
|
"filename": "src/root-constructs/nextjs-global-containers.ts",
|
|
6432
|
-
"line":
|
|
6433
|
-
},
|
|
6434
|
-
"name": "nextjsInvalidationProps",
|
|
6435
|
-
"optional": true,
|
|
6436
|
-
"type": {
|
|
6437
|
-
"fqn": "cdk-nextjs.OptionalNextjsInvalidationProps"
|
|
6438
|
-
}
|
|
6439
|
-
},
|
|
6440
|
-
{
|
|
6441
|
-
"abstract": true,
|
|
6442
|
-
"docs": {
|
|
6443
|
-
"stability": "stable"
|
|
6444
|
-
},
|
|
6445
|
-
"immutable": true,
|
|
6446
|
-
"locationInModule": {
|
|
6447
|
-
"filename": "src/root-constructs/nextjs-global-containers.ts",
|
|
6448
|
-
"line": 39
|
|
6449
|
-
},
|
|
6450
|
-
"name": "nextjsRevalidationProps",
|
|
6451
|
-
"optional": true,
|
|
6452
|
-
"type": {
|
|
6453
|
-
"fqn": "cdk-nextjs.NextjsRevalidationProps"
|
|
6454
|
-
}
|
|
6455
|
-
},
|
|
6456
|
-
{
|
|
6457
|
-
"abstract": true,
|
|
6458
|
-
"docs": {
|
|
6459
|
-
"stability": "stable"
|
|
6460
|
-
},
|
|
6461
|
-
"immutable": true,
|
|
6462
|
-
"locationInModule": {
|
|
6463
|
-
"filename": "src/root-constructs/nextjs-global-containers.ts",
|
|
6464
|
-
"line": 40
|
|
6576
|
+
"line": 35
|
|
6465
6577
|
},
|
|
6466
6578
|
"name": "nextjsStaticAssetsProps",
|
|
6467
6579
|
"optional": true,
|
|
@@ -6476,7 +6588,9 @@
|
|
|
6476
6588
|
"assembly": "cdk-nextjs",
|
|
6477
6589
|
"datatype": true,
|
|
6478
6590
|
"docs": {
|
|
6479
|
-
"
|
|
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`."
|
|
6480
6594
|
},
|
|
6481
6595
|
"fqn": "cdk-nextjs.NextjsGlobalContainersOverrides",
|
|
6482
6596
|
"interfaces": [
|
|
@@ -6485,7 +6599,7 @@
|
|
|
6485
6599
|
"kind": "interface",
|
|
6486
6600
|
"locationInModule": {
|
|
6487
6601
|
"filename": "src/root-constructs/nextjs-global-containers.ts",
|
|
6488
|
-
"line":
|
|
6602
|
+
"line": 43
|
|
6489
6603
|
},
|
|
6490
6604
|
"name": "NextjsGlobalContainersOverrides",
|
|
6491
6605
|
"properties": [
|
|
@@ -6497,7 +6611,7 @@
|
|
|
6497
6611
|
"immutable": true,
|
|
6498
6612
|
"locationInModule": {
|
|
6499
6613
|
"filename": "src/root-constructs/nextjs-global-containers.ts",
|
|
6500
|
-
"line":
|
|
6614
|
+
"line": 45
|
|
6501
6615
|
},
|
|
6502
6616
|
"name": "nextjsContainers",
|
|
6503
6617
|
"optional": true,
|
|
@@ -6513,7 +6627,7 @@
|
|
|
6513
6627
|
"immutable": true,
|
|
6514
6628
|
"locationInModule": {
|
|
6515
6629
|
"filename": "src/root-constructs/nextjs-global-containers.ts",
|
|
6516
|
-
"line":
|
|
6630
|
+
"line": 46
|
|
6517
6631
|
},
|
|
6518
6632
|
"name": "nextjsDistribution",
|
|
6519
6633
|
"optional": true,
|
|
@@ -6529,7 +6643,7 @@
|
|
|
6529
6643
|
"immutable": true,
|
|
6530
6644
|
"locationInModule": {
|
|
6531
6645
|
"filename": "src/root-constructs/nextjs-global-containers.ts",
|
|
6532
|
-
"line":
|
|
6646
|
+
"line": 44
|
|
6533
6647
|
},
|
|
6534
6648
|
"name": "nextjsGlobalContainers",
|
|
6535
6649
|
"optional": true,
|
|
@@ -6545,23 +6659,7 @@
|
|
|
6545
6659
|
"immutable": true,
|
|
6546
6660
|
"locationInModule": {
|
|
6547
6661
|
"filename": "src/root-constructs/nextjs-global-containers.ts",
|
|
6548
|
-
"line":
|
|
6549
|
-
},
|
|
6550
|
-
"name": "nextjsInvalidation",
|
|
6551
|
-
"optional": true,
|
|
6552
|
-
"type": {
|
|
6553
|
-
"fqn": "cdk-nextjs.NextjsInvalidationOverrides"
|
|
6554
|
-
}
|
|
6555
|
-
},
|
|
6556
|
-
{
|
|
6557
|
-
"abstract": true,
|
|
6558
|
-
"docs": {
|
|
6559
|
-
"stability": "stable"
|
|
6560
|
-
},
|
|
6561
|
-
"immutable": true,
|
|
6562
|
-
"locationInModule": {
|
|
6563
|
-
"filename": "src/root-constructs/nextjs-global-containers.ts",
|
|
6564
|
-
"line": 49
|
|
6662
|
+
"line": 47
|
|
6565
6663
|
},
|
|
6566
6664
|
"name": "nextjsStaticAssets",
|
|
6567
6665
|
"optional": true,
|
|
@@ -6585,7 +6683,7 @@
|
|
|
6585
6683
|
"kind": "interface",
|
|
6586
6684
|
"locationInModule": {
|
|
6587
6685
|
"filename": "src/root-constructs/nextjs-global-containers.ts",
|
|
6588
|
-
"line":
|
|
6686
|
+
"line": 50
|
|
6589
6687
|
},
|
|
6590
6688
|
"name": "NextjsGlobalContainersProps",
|
|
6591
6689
|
"properties": [
|
|
@@ -6600,7 +6698,7 @@
|
|
|
6600
6698
|
"immutable": true,
|
|
6601
6699
|
"locationInModule": {
|
|
6602
6700
|
"filename": "src/root-constructs/nextjs-global-containers.ts",
|
|
6603
|
-
"line":
|
|
6701
|
+
"line": 56
|
|
6604
6702
|
},
|
|
6605
6703
|
"name": "basePath",
|
|
6606
6704
|
"optional": true,
|
|
@@ -6618,7 +6716,7 @@
|
|
|
6618
6716
|
"immutable": true,
|
|
6619
6717
|
"locationInModule": {
|
|
6620
6718
|
"filename": "src/root-constructs/nextjs-global-containers.ts",
|
|
6621
|
-
"line":
|
|
6719
|
+
"line": 61
|
|
6622
6720
|
},
|
|
6623
6721
|
"name": "distribution",
|
|
6624
6722
|
"optional": true,
|
|
@@ -6635,7 +6733,7 @@
|
|
|
6635
6733
|
"immutable": true,
|
|
6636
6734
|
"locationInModule": {
|
|
6637
6735
|
"filename": "src/root-constructs/nextjs-global-containers.ts",
|
|
6638
|
-
"line":
|
|
6736
|
+
"line": 65
|
|
6639
6737
|
},
|
|
6640
6738
|
"name": "overrides",
|
|
6641
6739
|
"optional": true,
|
|
@@ -6660,7 +6758,7 @@
|
|
|
6660
6758
|
},
|
|
6661
6759
|
"locationInModule": {
|
|
6662
6760
|
"filename": "src/root-constructs/nextjs-global-functions.ts",
|
|
6663
|
-
"line":
|
|
6761
|
+
"line": 87
|
|
6664
6762
|
},
|
|
6665
6763
|
"parameters": [
|
|
6666
6764
|
{
|
|
@@ -6686,7 +6784,7 @@
|
|
|
6686
6784
|
"kind": "class",
|
|
6687
6785
|
"locationInModule": {
|
|
6688
6786
|
"filename": "src/root-constructs/nextjs-global-functions.ts",
|
|
6689
|
-
"line":
|
|
6787
|
+
"line": 74
|
|
6690
6788
|
},
|
|
6691
6789
|
"name": "NextjsGlobalFunctions",
|
|
6692
6790
|
"properties": [
|
|
@@ -6696,7 +6794,7 @@
|
|
|
6696
6794
|
},
|
|
6697
6795
|
"locationInModule": {
|
|
6698
6796
|
"filename": "src/root-constructs/nextjs-global-functions.ts",
|
|
6699
|
-
"line":
|
|
6797
|
+
"line": 79
|
|
6700
6798
|
},
|
|
6701
6799
|
"name": "nextjsAssetsDeployment",
|
|
6702
6800
|
"type": {
|
|
@@ -6709,7 +6807,7 @@
|
|
|
6709
6807
|
},
|
|
6710
6808
|
"locationInModule": {
|
|
6711
6809
|
"filename": "src/root-constructs/nextjs-global-functions.ts",
|
|
6712
|
-
"line":
|
|
6810
|
+
"line": 75
|
|
6713
6811
|
},
|
|
6714
6812
|
"name": "nextjsBuild",
|
|
6715
6813
|
"type": {
|
|
@@ -6722,7 +6820,7 @@
|
|
|
6722
6820
|
},
|
|
6723
6821
|
"locationInModule": {
|
|
6724
6822
|
"filename": "src/root-constructs/nextjs-global-functions.ts",
|
|
6725
|
-
"line":
|
|
6823
|
+
"line": 81
|
|
6726
6824
|
},
|
|
6727
6825
|
"name": "nextjsDistribution",
|
|
6728
6826
|
"type": {
|
|
@@ -6735,7 +6833,7 @@
|
|
|
6735
6833
|
},
|
|
6736
6834
|
"locationInModule": {
|
|
6737
6835
|
"filename": "src/root-constructs/nextjs-global-functions.ts",
|
|
6738
|
-
"line":
|
|
6836
|
+
"line": 78
|
|
6739
6837
|
},
|
|
6740
6838
|
"name": "nextjsFileSystem",
|
|
6741
6839
|
"type": {
|
|
@@ -6748,7 +6846,7 @@
|
|
|
6748
6846
|
},
|
|
6749
6847
|
"locationInModule": {
|
|
6750
6848
|
"filename": "src/root-constructs/nextjs-global-functions.ts",
|
|
6751
|
-
"line":
|
|
6849
|
+
"line": 80
|
|
6752
6850
|
},
|
|
6753
6851
|
"name": "nextjsFunctions",
|
|
6754
6852
|
"type": {
|
|
@@ -6761,24 +6859,11 @@
|
|
|
6761
6859
|
},
|
|
6762
6860
|
"locationInModule": {
|
|
6763
6861
|
"filename": "src/root-constructs/nextjs-global-functions.ts",
|
|
6764
|
-
"line":
|
|
6765
|
-
},
|
|
6766
|
-
"name": "nextjsInvalidation",
|
|
6767
|
-
"type": {
|
|
6768
|
-
"fqn": "cdk-nextjs.NextjsInvalidation"
|
|
6769
|
-
}
|
|
6770
|
-
},
|
|
6771
|
-
{
|
|
6772
|
-
"docs": {
|
|
6773
|
-
"stability": "stable"
|
|
6774
|
-
},
|
|
6775
|
-
"locationInModule": {
|
|
6776
|
-
"filename": "src/root-constructs/nextjs-global-functions.ts",
|
|
6777
|
-
"line": 89
|
|
6862
|
+
"line": 82
|
|
6778
6863
|
},
|
|
6779
|
-
"name": "
|
|
6864
|
+
"name": "nextjsPostDeploy",
|
|
6780
6865
|
"type": {
|
|
6781
|
-
"fqn": "cdk-nextjs.
|
|
6866
|
+
"fqn": "cdk-nextjs.NextjsPostDeploy"
|
|
6782
6867
|
}
|
|
6783
6868
|
},
|
|
6784
6869
|
{
|
|
@@ -6787,7 +6872,7 @@
|
|
|
6787
6872
|
},
|
|
6788
6873
|
"locationInModule": {
|
|
6789
6874
|
"filename": "src/root-constructs/nextjs-global-functions.ts",
|
|
6790
|
-
"line":
|
|
6875
|
+
"line": 76
|
|
6791
6876
|
},
|
|
6792
6877
|
"name": "nextjsStaticAssets",
|
|
6793
6878
|
"type": {
|
|
@@ -6800,7 +6885,7 @@
|
|
|
6800
6885
|
},
|
|
6801
6886
|
"locationInModule": {
|
|
6802
6887
|
"filename": "src/root-constructs/nextjs-global-functions.ts",
|
|
6803
|
-
"line":
|
|
6888
|
+
"line": 77
|
|
6804
6889
|
},
|
|
6805
6890
|
"name": "nextjsVpc",
|
|
6806
6891
|
"type": {
|
|
@@ -6823,7 +6908,7 @@
|
|
|
6823
6908
|
"kind": "interface",
|
|
6824
6909
|
"locationInModule": {
|
|
6825
6910
|
"filename": "src/root-constructs/nextjs-global-functions.ts",
|
|
6826
|
-
"line":
|
|
6911
|
+
"line": 31
|
|
6827
6912
|
},
|
|
6828
6913
|
"name": "NextjsGlobalFunctionsConstructOverrides",
|
|
6829
6914
|
"properties": [
|
|
@@ -6835,7 +6920,7 @@
|
|
|
6835
6920
|
"immutable": true,
|
|
6836
6921
|
"locationInModule": {
|
|
6837
6922
|
"filename": "src/root-constructs/nextjs-global-functions.ts",
|
|
6838
|
-
"line":
|
|
6923
|
+
"line": 34
|
|
6839
6924
|
},
|
|
6840
6925
|
"name": "nextjsDistributionProps",
|
|
6841
6926
|
"optional": true,
|
|
@@ -6851,7 +6936,7 @@
|
|
|
6851
6936
|
"immutable": true,
|
|
6852
6937
|
"locationInModule": {
|
|
6853
6938
|
"filename": "src/root-constructs/nextjs-global-functions.ts",
|
|
6854
|
-
"line":
|
|
6939
|
+
"line": 33
|
|
6855
6940
|
},
|
|
6856
6941
|
"name": "nextjsFunctionsProps",
|
|
6857
6942
|
"optional": true,
|
|
@@ -6867,39 +6952,7 @@
|
|
|
6867
6952
|
"immutable": true,
|
|
6868
6953
|
"locationInModule": {
|
|
6869
6954
|
"filename": "src/root-constructs/nextjs-global-functions.ts",
|
|
6870
|
-
"line":
|
|
6871
|
-
},
|
|
6872
|
-
"name": "nextjsInvalidationProps",
|
|
6873
|
-
"optional": true,
|
|
6874
|
-
"type": {
|
|
6875
|
-
"fqn": "cdk-nextjs.OptionalNextjsInvalidationProps"
|
|
6876
|
-
}
|
|
6877
|
-
},
|
|
6878
|
-
{
|
|
6879
|
-
"abstract": true,
|
|
6880
|
-
"docs": {
|
|
6881
|
-
"stability": "stable"
|
|
6882
|
-
},
|
|
6883
|
-
"immutable": true,
|
|
6884
|
-
"locationInModule": {
|
|
6885
|
-
"filename": "src/root-constructs/nextjs-global-functions.ts",
|
|
6886
|
-
"line": 44
|
|
6887
|
-
},
|
|
6888
|
-
"name": "nextjsRevalidationProps",
|
|
6889
|
-
"optional": true,
|
|
6890
|
-
"type": {
|
|
6891
|
-
"fqn": "cdk-nextjs.NextjsRevalidationProps"
|
|
6892
|
-
}
|
|
6893
|
-
},
|
|
6894
|
-
{
|
|
6895
|
-
"abstract": true,
|
|
6896
|
-
"docs": {
|
|
6897
|
-
"stability": "stable"
|
|
6898
|
-
},
|
|
6899
|
-
"immutable": true,
|
|
6900
|
-
"locationInModule": {
|
|
6901
|
-
"filename": "src/root-constructs/nextjs-global-functions.ts",
|
|
6902
|
-
"line": 45
|
|
6955
|
+
"line": 35
|
|
6903
6956
|
},
|
|
6904
6957
|
"name": "nextjsStaticAssetsProps",
|
|
6905
6958
|
"optional": true,
|
|
@@ -6914,7 +6967,9 @@
|
|
|
6914
6967
|
"assembly": "cdk-nextjs",
|
|
6915
6968
|
"datatype": true,
|
|
6916
6969
|
"docs": {
|
|
6917
|
-
"
|
|
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`."
|
|
6918
6973
|
},
|
|
6919
6974
|
"fqn": "cdk-nextjs.NextjsGlobalFunctionsOverrides",
|
|
6920
6975
|
"interfaces": [
|
|
@@ -6923,7 +6978,7 @@
|
|
|
6923
6978
|
"kind": "interface",
|
|
6924
6979
|
"locationInModule": {
|
|
6925
6980
|
"filename": "src/root-constructs/nextjs-global-functions.ts",
|
|
6926
|
-
"line":
|
|
6981
|
+
"line": 43
|
|
6927
6982
|
},
|
|
6928
6983
|
"name": "NextjsGlobalFunctionsOverrides",
|
|
6929
6984
|
"properties": [
|
|
@@ -6935,7 +6990,7 @@
|
|
|
6935
6990
|
"immutable": true,
|
|
6936
6991
|
"locationInModule": {
|
|
6937
6992
|
"filename": "src/root-constructs/nextjs-global-functions.ts",
|
|
6938
|
-
"line":
|
|
6993
|
+
"line": 46
|
|
6939
6994
|
},
|
|
6940
6995
|
"name": "nextjsDistribution",
|
|
6941
6996
|
"optional": true,
|
|
@@ -6951,7 +7006,7 @@
|
|
|
6951
7006
|
"immutable": true,
|
|
6952
7007
|
"locationInModule": {
|
|
6953
7008
|
"filename": "src/root-constructs/nextjs-global-functions.ts",
|
|
6954
|
-
"line":
|
|
7009
|
+
"line": 45
|
|
6955
7010
|
},
|
|
6956
7011
|
"name": "nextjsFunctions",
|
|
6957
7012
|
"optional": true,
|
|
@@ -6967,7 +7022,7 @@
|
|
|
6967
7022
|
"immutable": true,
|
|
6968
7023
|
"locationInModule": {
|
|
6969
7024
|
"filename": "src/root-constructs/nextjs-global-functions.ts",
|
|
6970
|
-
"line":
|
|
7025
|
+
"line": 44
|
|
6971
7026
|
},
|
|
6972
7027
|
"name": "nextjsGlobalFunctions",
|
|
6973
7028
|
"optional": true,
|
|
@@ -6983,66 +7038,34 @@
|
|
|
6983
7038
|
"immutable": true,
|
|
6984
7039
|
"locationInModule": {
|
|
6985
7040
|
"filename": "src/root-constructs/nextjs-global-functions.ts",
|
|
6986
|
-
"line":
|
|
7041
|
+
"line": 47
|
|
6987
7042
|
},
|
|
6988
|
-
"name": "
|
|
7043
|
+
"name": "nextjsStaticAssets",
|
|
6989
7044
|
"optional": true,
|
|
6990
7045
|
"type": {
|
|
6991
|
-
"fqn": "cdk-nextjs.
|
|
7046
|
+
"fqn": "cdk-nextjs.NextjsStaticAssetsOverrides"
|
|
6992
7047
|
}
|
|
6993
|
-
}
|
|
6994
|
-
|
|
6995
|
-
|
|
6996
|
-
|
|
6997
|
-
|
|
6998
|
-
|
|
6999
|
-
|
|
7000
|
-
|
|
7001
|
-
|
|
7002
|
-
|
|
7003
|
-
|
|
7004
|
-
|
|
7005
|
-
|
|
7006
|
-
|
|
7007
|
-
|
|
7008
|
-
|
|
7009
|
-
|
|
7010
|
-
|
|
7011
|
-
|
|
7012
|
-
|
|
7013
|
-
|
|
7014
|
-
},
|
|
7015
|
-
"immutable": true,
|
|
7016
|
-
"locationInModule": {
|
|
7017
|
-
"filename": "src/root-constructs/nextjs-global-functions.ts",
|
|
7018
|
-
"line": 54
|
|
7019
|
-
},
|
|
7020
|
-
"name": "nextjsStaticAssets",
|
|
7021
|
-
"optional": true,
|
|
7022
|
-
"type": {
|
|
7023
|
-
"fqn": "cdk-nextjs.NextjsStaticAssetsOverrides"
|
|
7024
|
-
}
|
|
7025
|
-
}
|
|
7026
|
-
],
|
|
7027
|
-
"symbolId": "src/root-constructs/nextjs-global-functions:NextjsGlobalFunctionsOverrides"
|
|
7028
|
-
},
|
|
7029
|
-
"cdk-nextjs.NextjsGlobalFunctionsProps": {
|
|
7030
|
-
"assembly": "cdk-nextjs",
|
|
7031
|
-
"datatype": true,
|
|
7032
|
-
"docs": {
|
|
7033
|
-
"stability": "stable"
|
|
7034
|
-
},
|
|
7035
|
-
"fqn": "cdk-nextjs.NextjsGlobalFunctionsProps",
|
|
7036
|
-
"interfaces": [
|
|
7037
|
-
"cdk-nextjs.NextjsBaseProps"
|
|
7038
|
-
],
|
|
7039
|
-
"kind": "interface",
|
|
7040
|
-
"locationInModule": {
|
|
7041
|
-
"filename": "src/root-constructs/nextjs-global-functions.ts",
|
|
7042
|
-
"line": 57
|
|
7043
|
-
},
|
|
7044
|
-
"name": "NextjsGlobalFunctionsProps",
|
|
7045
|
-
"properties": [
|
|
7048
|
+
}
|
|
7049
|
+
],
|
|
7050
|
+
"symbolId": "src/root-constructs/nextjs-global-functions:NextjsGlobalFunctionsOverrides"
|
|
7051
|
+
},
|
|
7052
|
+
"cdk-nextjs.NextjsGlobalFunctionsProps": {
|
|
7053
|
+
"assembly": "cdk-nextjs",
|
|
7054
|
+
"datatype": true,
|
|
7055
|
+
"docs": {
|
|
7056
|
+
"stability": "stable"
|
|
7057
|
+
},
|
|
7058
|
+
"fqn": "cdk-nextjs.NextjsGlobalFunctionsProps",
|
|
7059
|
+
"interfaces": [
|
|
7060
|
+
"cdk-nextjs.NextjsBaseProps"
|
|
7061
|
+
],
|
|
7062
|
+
"kind": "interface",
|
|
7063
|
+
"locationInModule": {
|
|
7064
|
+
"filename": "src/root-constructs/nextjs-global-functions.ts",
|
|
7065
|
+
"line": 50
|
|
7066
|
+
},
|
|
7067
|
+
"name": "NextjsGlobalFunctionsProps",
|
|
7068
|
+
"properties": [
|
|
7046
7069
|
{
|
|
7047
7070
|
"abstract": true,
|
|
7048
7071
|
"docs": {
|
|
@@ -7054,7 +7077,7 @@
|
|
|
7054
7077
|
"immutable": true,
|
|
7055
7078
|
"locationInModule": {
|
|
7056
7079
|
"filename": "src/root-constructs/nextjs-global-functions.ts",
|
|
7057
|
-
"line":
|
|
7080
|
+
"line": 56
|
|
7058
7081
|
},
|
|
7059
7082
|
"name": "basePath",
|
|
7060
7083
|
"optional": true,
|
|
@@ -7072,7 +7095,7 @@
|
|
|
7072
7095
|
"immutable": true,
|
|
7073
7096
|
"locationInModule": {
|
|
7074
7097
|
"filename": "src/root-constructs/nextjs-global-functions.ts",
|
|
7075
|
-
"line":
|
|
7098
|
+
"line": 61
|
|
7076
7099
|
},
|
|
7077
7100
|
"name": "distribution",
|
|
7078
7101
|
"optional": true,
|
|
@@ -7089,7 +7112,7 @@
|
|
|
7089
7112
|
"immutable": true,
|
|
7090
7113
|
"locationInModule": {
|
|
7091
7114
|
"filename": "src/root-constructs/nextjs-global-functions.ts",
|
|
7092
|
-
"line":
|
|
7115
|
+
"line": 65
|
|
7093
7116
|
},
|
|
7094
7117
|
"name": "overrides",
|
|
7095
7118
|
"optional": true,
|
|
@@ -7100,20 +7123,22 @@
|
|
|
7100
7123
|
],
|
|
7101
7124
|
"symbolId": "src/root-constructs/nextjs-global-functions:NextjsGlobalFunctionsProps"
|
|
7102
7125
|
},
|
|
7103
|
-
"cdk-nextjs.
|
|
7126
|
+
"cdk-nextjs.NextjsPostDeploy": {
|
|
7104
7127
|
"assembly": "cdk-nextjs",
|
|
7105
7128
|
"base": "constructs.Construct",
|
|
7106
7129
|
"docs": {
|
|
7107
|
-
"
|
|
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."
|
|
7108
7133
|
},
|
|
7109
|
-
"fqn": "cdk-nextjs.
|
|
7134
|
+
"fqn": "cdk-nextjs.NextjsPostDeploy",
|
|
7110
7135
|
"initializer": {
|
|
7111
7136
|
"docs": {
|
|
7112
7137
|
"stability": "stable"
|
|
7113
7138
|
},
|
|
7114
7139
|
"locationInModule": {
|
|
7115
|
-
"filename": "src/nextjs-
|
|
7116
|
-
"line":
|
|
7140
|
+
"filename": "src/nextjs-post-deploy.ts",
|
|
7141
|
+
"line": 113
|
|
7117
7142
|
},
|
|
7118
7143
|
"parameters": [
|
|
7119
7144
|
{
|
|
@@ -7131,354 +7156,293 @@
|
|
|
7131
7156
|
{
|
|
7132
7157
|
"name": "props",
|
|
7133
7158
|
"type": {
|
|
7134
|
-
"fqn": "cdk-nextjs.
|
|
7159
|
+
"fqn": "cdk-nextjs.NextjsPostDeployProps"
|
|
7135
7160
|
}
|
|
7136
7161
|
}
|
|
7137
7162
|
]
|
|
7138
7163
|
},
|
|
7139
7164
|
"kind": "class",
|
|
7140
7165
|
"locationInModule": {
|
|
7141
|
-
"filename": "src/nextjs-
|
|
7142
|
-
"line":
|
|
7166
|
+
"filename": "src/nextjs-post-deploy.ts",
|
|
7167
|
+
"line": 107
|
|
7143
7168
|
},
|
|
7144
|
-
"name": "
|
|
7145
|
-
"symbolId": "src/nextjs-invalidation:NextjsInvalidation"
|
|
7146
|
-
},
|
|
7147
|
-
"cdk-nextjs.NextjsInvalidationOverrides": {
|
|
7148
|
-
"assembly": "cdk-nextjs",
|
|
7149
|
-
"datatype": true,
|
|
7150
|
-
"docs": {
|
|
7151
|
-
"stability": "stable"
|
|
7152
|
-
},
|
|
7153
|
-
"fqn": "cdk-nextjs.NextjsInvalidationOverrides",
|
|
7154
|
-
"kind": "interface",
|
|
7155
|
-
"locationInModule": {
|
|
7156
|
-
"filename": "src/nextjs-invalidation.ts",
|
|
7157
|
-
"line": 13
|
|
7158
|
-
},
|
|
7159
|
-
"name": "NextjsInvalidationOverrides",
|
|
7169
|
+
"name": "NextjsPostDeploy",
|
|
7160
7170
|
"properties": [
|
|
7161
7171
|
{
|
|
7162
|
-
"abstract": true,
|
|
7163
7172
|
"docs": {
|
|
7164
7173
|
"stability": "stable"
|
|
7165
7174
|
},
|
|
7166
|
-
"immutable": true,
|
|
7167
7175
|
"locationInModule": {
|
|
7168
|
-
"filename": "src/nextjs-
|
|
7169
|
-
"line":
|
|
7176
|
+
"filename": "src/nextjs-post-deploy.ts",
|
|
7177
|
+
"line": 108
|
|
7170
7178
|
},
|
|
7171
|
-
"name": "
|
|
7172
|
-
"optional": true,
|
|
7179
|
+
"name": "customResource",
|
|
7173
7180
|
"type": {
|
|
7174
|
-
"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"
|
|
7175
7195
|
}
|
|
7176
7196
|
}
|
|
7177
7197
|
],
|
|
7178
|
-
"symbolId": "src/nextjs-
|
|
7198
|
+
"symbolId": "src/nextjs-post-deploy:NextjsPostDeploy"
|
|
7179
7199
|
},
|
|
7180
|
-
"cdk-nextjs.
|
|
7200
|
+
"cdk-nextjs.NextjsPostDeployOverrides": {
|
|
7181
7201
|
"assembly": "cdk-nextjs",
|
|
7182
7202
|
"datatype": true,
|
|
7183
7203
|
"docs": {
|
|
7184
7204
|
"stability": "stable"
|
|
7185
7205
|
},
|
|
7186
|
-
"fqn": "cdk-nextjs.
|
|
7206
|
+
"fqn": "cdk-nextjs.NextjsPostDeployOverrides",
|
|
7187
7207
|
"kind": "interface",
|
|
7188
7208
|
"locationInModule": {
|
|
7189
|
-
"filename": "src/nextjs-
|
|
7190
|
-
"line":
|
|
7209
|
+
"filename": "src/nextjs-post-deploy.ts",
|
|
7210
|
+
"line": 21
|
|
7191
7211
|
},
|
|
7192
|
-
"name": "
|
|
7212
|
+
"name": "NextjsPostDeployOverrides",
|
|
7193
7213
|
"properties": [
|
|
7194
7214
|
{
|
|
7195
7215
|
"abstract": true,
|
|
7196
7216
|
"docs": {
|
|
7197
7217
|
"stability": "stable",
|
|
7198
|
-
"summary": "
|
|
7218
|
+
"summary": "Properties passed into custom resource that are passed to Lambda event handler."
|
|
7199
7219
|
},
|
|
7200
7220
|
"immutable": true,
|
|
7201
7221
|
"locationInModule": {
|
|
7202
|
-
"filename": "src/nextjs-
|
|
7203
|
-
"line":
|
|
7222
|
+
"filename": "src/nextjs-post-deploy.ts",
|
|
7223
|
+
"line": 30
|
|
7204
7224
|
},
|
|
7205
|
-
"name": "
|
|
7225
|
+
"name": "customResourceProperties",
|
|
7226
|
+
"optional": true,
|
|
7206
7227
|
"type": {
|
|
7207
|
-
"fqn": "
|
|
7228
|
+
"fqn": "cdk-nextjs.OptionalPostDeployCustomResourceProperties"
|
|
7208
7229
|
}
|
|
7209
7230
|
},
|
|
7210
7231
|
{
|
|
7211
7232
|
"abstract": true,
|
|
7212
7233
|
"docs": {
|
|
7213
7234
|
"stability": "stable",
|
|
7214
|
-
"summary": "
|
|
7235
|
+
"summary": "Props that define the custom resource."
|
|
7215
7236
|
},
|
|
7216
7237
|
"immutable": true,
|
|
7217
7238
|
"locationInModule": {
|
|
7218
|
-
"filename": "src/nextjs-
|
|
7219
|
-
"line":
|
|
7239
|
+
"filename": "src/nextjs-post-deploy.ts",
|
|
7240
|
+
"line": 26
|
|
7220
7241
|
},
|
|
7221
|
-
"name": "
|
|
7242
|
+
"name": "customResourceProps",
|
|
7222
7243
|
"optional": true,
|
|
7223
7244
|
"type": {
|
|
7224
|
-
"fqn": "cdk-nextjs.
|
|
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",
|
|
7259
|
+
"optional": true,
|
|
7260
|
+
"type": {
|
|
7261
|
+
"fqn": "cdk-nextjs.OptionalFunctionProps"
|
|
7225
7262
|
}
|
|
7226
7263
|
}
|
|
7227
7264
|
],
|
|
7228
|
-
"symbolId": "src/nextjs-
|
|
7265
|
+
"symbolId": "src/nextjs-post-deploy:NextjsPostDeployOverrides"
|
|
7229
7266
|
},
|
|
7230
|
-
"cdk-nextjs.
|
|
7267
|
+
"cdk-nextjs.NextjsPostDeployProps": {
|
|
7231
7268
|
"assembly": "cdk-nextjs",
|
|
7232
|
-
"
|
|
7269
|
+
"datatype": true,
|
|
7233
7270
|
"docs": {
|
|
7234
|
-
"stability": "stable"
|
|
7235
|
-
"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."
|
|
7236
|
-
},
|
|
7237
|
-
"fqn": "cdk-nextjs.NextjsRegionalContainers",
|
|
7238
|
-
"initializer": {
|
|
7239
|
-
"docs": {
|
|
7240
|
-
"stability": "stable"
|
|
7241
|
-
},
|
|
7242
|
-
"locationInModule": {
|
|
7243
|
-
"filename": "src/root-constructs/nextjs-regional-containers.ts",
|
|
7244
|
-
"line": 51
|
|
7245
|
-
},
|
|
7246
|
-
"parameters": [
|
|
7247
|
-
{
|
|
7248
|
-
"name": "scope",
|
|
7249
|
-
"type": {
|
|
7250
|
-
"fqn": "constructs.Construct"
|
|
7251
|
-
}
|
|
7252
|
-
},
|
|
7253
|
-
{
|
|
7254
|
-
"name": "id",
|
|
7255
|
-
"type": {
|
|
7256
|
-
"primitive": "string"
|
|
7257
|
-
}
|
|
7258
|
-
},
|
|
7259
|
-
{
|
|
7260
|
-
"name": "props",
|
|
7261
|
-
"type": {
|
|
7262
|
-
"fqn": "cdk-nextjs.NextjsRegionalContainersProps"
|
|
7263
|
-
}
|
|
7264
|
-
}
|
|
7265
|
-
]
|
|
7271
|
+
"stability": "stable"
|
|
7266
7272
|
},
|
|
7267
|
-
"
|
|
7273
|
+
"fqn": "cdk-nextjs.NextjsPostDeployProps",
|
|
7274
|
+
"kind": "interface",
|
|
7268
7275
|
"locationInModule": {
|
|
7269
|
-
"filename": "src/
|
|
7270
|
-
"line":
|
|
7276
|
+
"filename": "src/nextjs-post-deploy.ts",
|
|
7277
|
+
"line": 33
|
|
7271
7278
|
},
|
|
7272
|
-
"name": "
|
|
7279
|
+
"name": "NextjsPostDeployProps",
|
|
7273
7280
|
"properties": [
|
|
7274
7281
|
{
|
|
7282
|
+
"abstract": true,
|
|
7275
7283
|
"docs": {
|
|
7276
7284
|
"stability": "stable"
|
|
7277
7285
|
},
|
|
7286
|
+
"immutable": true,
|
|
7278
7287
|
"locationInModule": {
|
|
7279
|
-
"filename": "src/
|
|
7280
|
-
"line":
|
|
7288
|
+
"filename": "src/nextjs-post-deploy.ts",
|
|
7289
|
+
"line": 34
|
|
7281
7290
|
},
|
|
7282
|
-
"name": "
|
|
7291
|
+
"name": "accessPoint",
|
|
7283
7292
|
"type": {
|
|
7284
|
-
"fqn": "cdk-
|
|
7293
|
+
"fqn": "aws-cdk-lib.aws_efs.AccessPoint"
|
|
7285
7294
|
}
|
|
7286
7295
|
},
|
|
7287
7296
|
{
|
|
7297
|
+
"abstract": true,
|
|
7288
7298
|
"docs": {
|
|
7289
7299
|
"stability": "stable"
|
|
7290
7300
|
},
|
|
7301
|
+
"immutable": true,
|
|
7291
7302
|
"locationInModule": {
|
|
7292
|
-
"filename": "src/
|
|
7293
|
-
"line":
|
|
7303
|
+
"filename": "src/nextjs-post-deploy.ts",
|
|
7304
|
+
"line": 35
|
|
7294
7305
|
},
|
|
7295
|
-
"name": "
|
|
7306
|
+
"name": "buildId",
|
|
7296
7307
|
"type": {
|
|
7297
|
-
"
|
|
7308
|
+
"primitive": "string"
|
|
7298
7309
|
}
|
|
7299
7310
|
},
|
|
7300
7311
|
{
|
|
7312
|
+
"abstract": true,
|
|
7301
7313
|
"docs": {
|
|
7314
|
+
"see": "{@link NextjsBuild.buildImageDigest }",
|
|
7302
7315
|
"stability": "stable"
|
|
7303
7316
|
},
|
|
7317
|
+
"immutable": true,
|
|
7304
7318
|
"locationInModule": {
|
|
7305
|
-
"filename": "src/
|
|
7306
|
-
"line":
|
|
7319
|
+
"filename": "src/nextjs-post-deploy.ts",
|
|
7320
|
+
"line": 39
|
|
7307
7321
|
},
|
|
7308
|
-
"name": "
|
|
7322
|
+
"name": "buildImageDigest",
|
|
7309
7323
|
"type": {
|
|
7310
|
-
"
|
|
7324
|
+
"primitive": "string"
|
|
7311
7325
|
}
|
|
7312
7326
|
},
|
|
7313
7327
|
{
|
|
7328
|
+
"abstract": true,
|
|
7314
7329
|
"docs": {
|
|
7315
7330
|
"stability": "stable"
|
|
7316
7331
|
},
|
|
7332
|
+
"immutable": true,
|
|
7317
7333
|
"locationInModule": {
|
|
7318
|
-
"filename": "src/
|
|
7319
|
-
"line":
|
|
7334
|
+
"filename": "src/nextjs-post-deploy.ts",
|
|
7335
|
+
"line": 61
|
|
7320
7336
|
},
|
|
7321
|
-
"name": "
|
|
7337
|
+
"name": "vpc",
|
|
7322
7338
|
"type": {
|
|
7323
|
-
"fqn": "cdk-
|
|
7339
|
+
"fqn": "aws-cdk-lib.aws_ec2.IVpc"
|
|
7324
7340
|
}
|
|
7325
7341
|
},
|
|
7326
7342
|
{
|
|
7343
|
+
"abstract": true,
|
|
7327
7344
|
"docs": {
|
|
7328
|
-
"
|
|
7345
|
+
"default": "true",
|
|
7346
|
+
"stability": "stable",
|
|
7347
|
+
"summary": "If true, logs details in custom resource lambda."
|
|
7329
7348
|
},
|
|
7349
|
+
"immutable": true,
|
|
7330
7350
|
"locationInModule": {
|
|
7331
|
-
"filename": "src/
|
|
7332
|
-
"line":
|
|
7351
|
+
"filename": "src/nextjs-post-deploy.ts",
|
|
7352
|
+
"line": 44
|
|
7333
7353
|
},
|
|
7334
|
-
"name": "
|
|
7354
|
+
"name": "debug",
|
|
7355
|
+
"optional": true,
|
|
7335
7356
|
"type": {
|
|
7336
|
-
"
|
|
7357
|
+
"primitive": "boolean"
|
|
7337
7358
|
}
|
|
7338
|
-
}
|
|
7339
|
-
],
|
|
7340
|
-
"symbolId": "src/root-constructs/nextjs-regional-containers:NextjsRegionalContainers"
|
|
7341
|
-
},
|
|
7342
|
-
"cdk-nextjs.NextjsRegionalContainersConstructOverrides": {
|
|
7343
|
-
"assembly": "cdk-nextjs",
|
|
7344
|
-
"datatype": true,
|
|
7345
|
-
"docs": {
|
|
7346
|
-
"stability": "stable"
|
|
7347
|
-
},
|
|
7348
|
-
"fqn": "cdk-nextjs.NextjsRegionalContainersConstructOverrides",
|
|
7349
|
-
"interfaces": [
|
|
7350
|
-
"cdk-nextjs.BaseNextjsConstructOverrides"
|
|
7351
|
-
],
|
|
7352
|
-
"kind": "interface",
|
|
7353
|
-
"locationInModule": {
|
|
7354
|
-
"filename": "src/root-constructs/nextjs-regional-containers.ts",
|
|
7355
|
-
"line": 18
|
|
7356
|
-
},
|
|
7357
|
-
"name": "NextjsRegionalContainersConstructOverrides",
|
|
7358
|
-
"properties": [
|
|
7359
|
+
},
|
|
7359
7360
|
{
|
|
7360
7361
|
"abstract": true,
|
|
7361
7362
|
"docs": {
|
|
7362
|
-
"stability": "stable"
|
|
7363
|
+
"stability": "stable",
|
|
7364
|
+
"summary": "CloudFront Distribution to invalidate."
|
|
7363
7365
|
},
|
|
7364
7366
|
"immutable": true,
|
|
7365
7367
|
"locationInModule": {
|
|
7366
|
-
"filename": "src/
|
|
7367
|
-
"line":
|
|
7368
|
+
"filename": "src/nextjs-post-deploy.ts",
|
|
7369
|
+
"line": 48
|
|
7368
7370
|
},
|
|
7369
|
-
"name": "
|
|
7371
|
+
"name": "distribution",
|
|
7370
7372
|
"optional": true,
|
|
7371
7373
|
"type": {
|
|
7372
|
-
"fqn": "cdk-
|
|
7374
|
+
"fqn": "aws-cdk-lib.aws_cloudfront.IDistribution"
|
|
7373
7375
|
}
|
|
7374
|
-
}
|
|
7375
|
-
],
|
|
7376
|
-
"symbolId": "src/root-constructs/nextjs-regional-containers:NextjsRegionalContainersConstructOverrides"
|
|
7377
|
-
},
|
|
7378
|
-
"cdk-nextjs.NextjsRegionalContainersOverrides": {
|
|
7379
|
-
"assembly": "cdk-nextjs",
|
|
7380
|
-
"datatype": true,
|
|
7381
|
-
"docs": {
|
|
7382
|
-
"stability": "stable"
|
|
7383
|
-
},
|
|
7384
|
-
"fqn": "cdk-nextjs.NextjsRegionalContainersOverrides",
|
|
7385
|
-
"interfaces": [
|
|
7386
|
-
"cdk-nextjs.BaseNextjsOverrides"
|
|
7387
|
-
],
|
|
7388
|
-
"kind": "interface",
|
|
7389
|
-
"locationInModule": {
|
|
7390
|
-
"filename": "src/root-constructs/nextjs-regional-containers.ts",
|
|
7391
|
-
"line": 23
|
|
7392
|
-
},
|
|
7393
|
-
"name": "NextjsRegionalContainersOverrides",
|
|
7394
|
-
"properties": [
|
|
7376
|
+
},
|
|
7395
7377
|
{
|
|
7396
7378
|
"abstract": true,
|
|
7397
7379
|
"docs": {
|
|
7398
|
-
"stability": "stable"
|
|
7380
|
+
"stability": "stable",
|
|
7381
|
+
"summary": "Override props for every construct."
|
|
7399
7382
|
},
|
|
7400
7383
|
"immutable": true,
|
|
7401
7384
|
"locationInModule": {
|
|
7402
|
-
"filename": "src/
|
|
7403
|
-
"line":
|
|
7385
|
+
"filename": "src/nextjs-post-deploy.ts",
|
|
7386
|
+
"line": 52
|
|
7404
7387
|
},
|
|
7405
|
-
"name": "
|
|
7388
|
+
"name": "overrides",
|
|
7406
7389
|
"optional": true,
|
|
7407
7390
|
"type": {
|
|
7408
|
-
"fqn": "cdk-nextjs.
|
|
7391
|
+
"fqn": "cdk-nextjs.NextjsPostDeployOverrides"
|
|
7409
7392
|
}
|
|
7410
7393
|
},
|
|
7411
7394
|
{
|
|
7412
7395
|
"abstract": true,
|
|
7413
7396
|
"docs": {
|
|
7397
|
+
"see": "{@link NextjsBaseProps.relativePathToPackage }",
|
|
7414
7398
|
"stability": "stable"
|
|
7415
7399
|
},
|
|
7416
7400
|
"immutable": true,
|
|
7417
7401
|
"locationInModule": {
|
|
7418
|
-
"filename": "src/
|
|
7419
|
-
"line":
|
|
7402
|
+
"filename": "src/nextjs-post-deploy.ts",
|
|
7403
|
+
"line": 56
|
|
7420
7404
|
},
|
|
7421
|
-
"name": "
|
|
7405
|
+
"name": "relativePathToPackage",
|
|
7422
7406
|
"optional": true,
|
|
7423
7407
|
"type": {
|
|
7424
|
-
"
|
|
7408
|
+
"primitive": "string"
|
|
7425
7409
|
}
|
|
7426
|
-
}
|
|
7427
|
-
],
|
|
7428
|
-
"symbolId": "src/root-constructs/nextjs-regional-containers:NextjsRegionalContainersOverrides"
|
|
7429
|
-
},
|
|
7430
|
-
"cdk-nextjs.NextjsRegionalContainersProps": {
|
|
7431
|
-
"assembly": "cdk-nextjs",
|
|
7432
|
-
"datatype": true,
|
|
7433
|
-
"docs": {
|
|
7434
|
-
"stability": "stable"
|
|
7435
|
-
},
|
|
7436
|
-
"fqn": "cdk-nextjs.NextjsRegionalContainersProps",
|
|
7437
|
-
"interfaces": [
|
|
7438
|
-
"cdk-nextjs.NextjsBaseProps"
|
|
7439
|
-
],
|
|
7440
|
-
"kind": "interface",
|
|
7441
|
-
"locationInModule": {
|
|
7442
|
-
"filename": "src/root-constructs/nextjs-regional-containers.ts",
|
|
7443
|
-
"line": 28
|
|
7444
|
-
},
|
|
7445
|
-
"name": "NextjsRegionalContainersProps",
|
|
7446
|
-
"properties": [
|
|
7410
|
+
},
|
|
7447
7411
|
{
|
|
7448
7412
|
"abstract": true,
|
|
7449
7413
|
"docs": {
|
|
7450
7414
|
"stability": "stable",
|
|
7451
|
-
"summary": "
|
|
7415
|
+
"summary": "Required for `NextjsType.GlobalFunctions` and `NextjsType.GlobalContainers`."
|
|
7452
7416
|
},
|
|
7453
7417
|
"immutable": true,
|
|
7454
7418
|
"locationInModule": {
|
|
7455
|
-
"filename": "src/
|
|
7456
|
-
"line":
|
|
7419
|
+
"filename": "src/nextjs-post-deploy.ts",
|
|
7420
|
+
"line": 60
|
|
7457
7421
|
},
|
|
7458
|
-
"name": "
|
|
7422
|
+
"name": "staticAssetsBucket",
|
|
7459
7423
|
"optional": true,
|
|
7460
7424
|
"type": {
|
|
7461
|
-
"fqn": "cdk-
|
|
7425
|
+
"fqn": "aws-cdk-lib.aws_s3.Bucket"
|
|
7462
7426
|
}
|
|
7463
7427
|
}
|
|
7464
7428
|
],
|
|
7465
|
-
"symbolId": "src/
|
|
7429
|
+
"symbolId": "src/nextjs-post-deploy:NextjsPostDeployProps"
|
|
7466
7430
|
},
|
|
7467
|
-
"cdk-nextjs.
|
|
7431
|
+
"cdk-nextjs.NextjsRegionalContainers": {
|
|
7468
7432
|
"assembly": "cdk-nextjs",
|
|
7469
7433
|
"base": "constructs.Construct",
|
|
7470
7434
|
"docs": {
|
|
7471
7435
|
"stability": "stable",
|
|
7472
|
-
"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."
|
|
7473
7437
|
},
|
|
7474
|
-
"fqn": "cdk-nextjs.
|
|
7438
|
+
"fqn": "cdk-nextjs.NextjsRegionalContainers",
|
|
7475
7439
|
"initializer": {
|
|
7476
7440
|
"docs": {
|
|
7477
7441
|
"stability": "stable"
|
|
7478
7442
|
},
|
|
7479
7443
|
"locationInModule": {
|
|
7480
|
-
"filename": "src/nextjs-
|
|
7481
|
-
"line":
|
|
7444
|
+
"filename": "src/root-constructs/nextjs-regional-containers.ts",
|
|
7445
|
+
"line": 59
|
|
7482
7446
|
},
|
|
7483
7447
|
"parameters": [
|
|
7484
7448
|
{
|
|
@@ -7496,29 +7460,29 @@
|
|
|
7496
7460
|
{
|
|
7497
7461
|
"name": "props",
|
|
7498
7462
|
"type": {
|
|
7499
|
-
"fqn": "cdk-nextjs.
|
|
7463
|
+
"fqn": "cdk-nextjs.NextjsRegionalContainersProps"
|
|
7500
7464
|
}
|
|
7501
7465
|
}
|
|
7502
7466
|
]
|
|
7503
7467
|
},
|
|
7504
7468
|
"kind": "class",
|
|
7505
7469
|
"locationInModule": {
|
|
7506
|
-
"filename": "src/nextjs-
|
|
7507
|
-
"line":
|
|
7470
|
+
"filename": "src/root-constructs/nextjs-regional-containers.ts",
|
|
7471
|
+
"line": 48
|
|
7508
7472
|
},
|
|
7509
|
-
"name": "
|
|
7473
|
+
"name": "NextjsRegionalContainers",
|
|
7510
7474
|
"properties": [
|
|
7511
7475
|
{
|
|
7512
7476
|
"docs": {
|
|
7513
7477
|
"stability": "stable"
|
|
7514
7478
|
},
|
|
7515
7479
|
"locationInModule": {
|
|
7516
|
-
"filename": "src/nextjs-
|
|
7517
|
-
"line":
|
|
7480
|
+
"filename": "src/root-constructs/nextjs-regional-containers.ts",
|
|
7481
|
+
"line": 52
|
|
7518
7482
|
},
|
|
7519
|
-
"name": "
|
|
7483
|
+
"name": "nextjsAssetsDeployment",
|
|
7520
7484
|
"type": {
|
|
7521
|
-
"fqn": "
|
|
7485
|
+
"fqn": "cdk-nextjs.NextjsAssetsDeployment"
|
|
7522
7486
|
}
|
|
7523
7487
|
},
|
|
7524
7488
|
{
|
|
@@ -7526,63 +7490,86 @@
|
|
|
7526
7490
|
"stability": "stable"
|
|
7527
7491
|
},
|
|
7528
7492
|
"locationInModule": {
|
|
7529
|
-
"filename": "src/nextjs-
|
|
7530
|
-
"line":
|
|
7493
|
+
"filename": "src/root-constructs/nextjs-regional-containers.ts",
|
|
7494
|
+
"line": 49
|
|
7531
7495
|
},
|
|
7532
|
-
"name": "
|
|
7496
|
+
"name": "nextjsBuild",
|
|
7533
7497
|
"type": {
|
|
7534
|
-
"fqn": "
|
|
7498
|
+
"fqn": "cdk-nextjs.NextjsBuild"
|
|
7535
7499
|
}
|
|
7536
|
-
}
|
|
7537
|
-
],
|
|
7538
|
-
"symbolId": "src/nextjs-revalidation:NextjsRevalidation"
|
|
7539
|
-
},
|
|
7540
|
-
"cdk-nextjs.NextjsRevalidationOverrides": {
|
|
7541
|
-
"assembly": "cdk-nextjs",
|
|
7542
|
-
"datatype": true,
|
|
7543
|
-
"docs": {
|
|
7544
|
-
"stability": "stable"
|
|
7545
|
-
},
|
|
7546
|
-
"fqn": "cdk-nextjs.NextjsRevalidationOverrides",
|
|
7547
|
-
"kind": "interface",
|
|
7548
|
-
"locationInModule": {
|
|
7549
|
-
"filename": "src/nextjs-revalidation.ts",
|
|
7550
|
-
"line": 13
|
|
7551
|
-
},
|
|
7552
|
-
"name": "NextjsRevalidationOverrides",
|
|
7553
|
-
"properties": [
|
|
7500
|
+
},
|
|
7554
7501
|
{
|
|
7555
|
-
"abstract": true,
|
|
7556
7502
|
"docs": {
|
|
7557
7503
|
"stability": "stable"
|
|
7558
7504
|
},
|
|
7559
|
-
"immutable": true,
|
|
7560
7505
|
"locationInModule": {
|
|
7561
|
-
"filename": "src/nextjs-
|
|
7562
|
-
"line":
|
|
7506
|
+
"filename": "src/root-constructs/nextjs-regional-containers.ts",
|
|
7507
|
+
"line": 53
|
|
7563
7508
|
},
|
|
7564
|
-
"name": "
|
|
7565
|
-
"optional": true,
|
|
7509
|
+
"name": "nextjsContainers",
|
|
7566
7510
|
"type": {
|
|
7567
|
-
"fqn": "cdk-nextjs.
|
|
7511
|
+
"fqn": "cdk-nextjs.NextjsContainers"
|
|
7568
7512
|
}
|
|
7569
7513
|
},
|
|
7570
7514
|
{
|
|
7571
|
-
"abstract": true,
|
|
7572
7515
|
"docs": {
|
|
7573
7516
|
"stability": "stable"
|
|
7574
7517
|
},
|
|
7575
|
-
"immutable": true,
|
|
7576
7518
|
"locationInModule": {
|
|
7577
|
-
"filename": "src/nextjs-
|
|
7578
|
-
"line":
|
|
7519
|
+
"filename": "src/root-constructs/nextjs-regional-containers.ts",
|
|
7520
|
+
"line": 51
|
|
7579
7521
|
},
|
|
7580
|
-
"name": "
|
|
7581
|
-
"
|
|
7522
|
+
"name": "nextjsFileSystem",
|
|
7523
|
+
"type": {
|
|
7524
|
+
"fqn": "cdk-nextjs.NextjsFileSystem"
|
|
7525
|
+
}
|
|
7526
|
+
},
|
|
7527
|
+
{
|
|
7528
|
+
"docs": {
|
|
7529
|
+
"stability": "stable"
|
|
7530
|
+
},
|
|
7531
|
+
"locationInModule": {
|
|
7532
|
+
"filename": "src/root-constructs/nextjs-regional-containers.ts",
|
|
7533
|
+
"line": 54
|
|
7534
|
+
},
|
|
7535
|
+
"name": "nextjsPostDeploy",
|
|
7582
7536
|
"type": {
|
|
7583
|
-
"fqn": "
|
|
7537
|
+
"fqn": "cdk-nextjs.NextjsPostDeploy"
|
|
7584
7538
|
}
|
|
7585
7539
|
},
|
|
7540
|
+
{
|
|
7541
|
+
"docs": {
|
|
7542
|
+
"stability": "stable"
|
|
7543
|
+
},
|
|
7544
|
+
"locationInModule": {
|
|
7545
|
+
"filename": "src/root-constructs/nextjs-regional-containers.ts",
|
|
7546
|
+
"line": 50
|
|
7547
|
+
},
|
|
7548
|
+
"name": "nextjsVpc",
|
|
7549
|
+
"type": {
|
|
7550
|
+
"fqn": "cdk-nextjs.NextjsVpc"
|
|
7551
|
+
}
|
|
7552
|
+
}
|
|
7553
|
+
],
|
|
7554
|
+
"symbolId": "src/root-constructs/nextjs-regional-containers:NextjsRegionalContainers"
|
|
7555
|
+
},
|
|
7556
|
+
"cdk-nextjs.NextjsRegionalContainersConstructOverrides": {
|
|
7557
|
+
"assembly": "cdk-nextjs",
|
|
7558
|
+
"datatype": true,
|
|
7559
|
+
"docs": {
|
|
7560
|
+
"stability": "stable"
|
|
7561
|
+
},
|
|
7562
|
+
"fqn": "cdk-nextjs.NextjsRegionalContainersConstructOverrides",
|
|
7563
|
+
"interfaces": [
|
|
7564
|
+
"cdk-nextjs.BaseNextjsConstructOverrides"
|
|
7565
|
+
],
|
|
7566
|
+
"kind": "interface",
|
|
7567
|
+
"locationInModule": {
|
|
7568
|
+
"filename": "src/root-constructs/nextjs-regional-containers.ts",
|
|
7569
|
+
"line": 20
|
|
7570
|
+
},
|
|
7571
|
+
"name": "NextjsRegionalContainersConstructOverrides",
|
|
7572
|
+
"properties": [
|
|
7586
7573
|
{
|
|
7587
7574
|
"abstract": true,
|
|
7588
7575
|
"docs": {
|
|
@@ -7590,31 +7577,36 @@
|
|
|
7590
7577
|
},
|
|
7591
7578
|
"immutable": true,
|
|
7592
7579
|
"locationInModule": {
|
|
7593
|
-
"filename": "src/nextjs-
|
|
7594
|
-
"line":
|
|
7580
|
+
"filename": "src/root-constructs/nextjs-regional-containers.ts",
|
|
7581
|
+
"line": 22
|
|
7595
7582
|
},
|
|
7596
|
-
"name": "
|
|
7583
|
+
"name": "nextjsContainerProps",
|
|
7597
7584
|
"optional": true,
|
|
7598
7585
|
"type": {
|
|
7599
|
-
"fqn": "
|
|
7586
|
+
"fqn": "cdk-nextjs.OptionalNextjsContainersProps"
|
|
7600
7587
|
}
|
|
7601
7588
|
}
|
|
7602
7589
|
],
|
|
7603
|
-
"symbolId": "src/nextjs-
|
|
7590
|
+
"symbolId": "src/root-constructs/nextjs-regional-containers:NextjsRegionalContainersConstructOverrides"
|
|
7604
7591
|
},
|
|
7605
|
-
"cdk-nextjs.
|
|
7592
|
+
"cdk-nextjs.NextjsRegionalContainersOverrides": {
|
|
7606
7593
|
"assembly": "cdk-nextjs",
|
|
7607
7594
|
"datatype": true,
|
|
7608
7595
|
"docs": {
|
|
7609
|
-
"
|
|
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`."
|
|
7610
7599
|
},
|
|
7611
|
-
"fqn": "cdk-nextjs.
|
|
7600
|
+
"fqn": "cdk-nextjs.NextjsRegionalContainersOverrides",
|
|
7601
|
+
"interfaces": [
|
|
7602
|
+
"cdk-nextjs.BaseNextjsOverrides"
|
|
7603
|
+
],
|
|
7612
7604
|
"kind": "interface",
|
|
7613
7605
|
"locationInModule": {
|
|
7614
|
-
"filename": "src/nextjs-
|
|
7615
|
-
"line":
|
|
7606
|
+
"filename": "src/root-constructs/nextjs-regional-containers.ts",
|
|
7607
|
+
"line": 30
|
|
7616
7608
|
},
|
|
7617
|
-
"name": "
|
|
7609
|
+
"name": "NextjsRegionalContainersOverrides",
|
|
7618
7610
|
"properties": [
|
|
7619
7611
|
{
|
|
7620
7612
|
"abstract": true,
|
|
@@ -7623,12 +7615,13 @@
|
|
|
7623
7615
|
},
|
|
7624
7616
|
"immutable": true,
|
|
7625
7617
|
"locationInModule": {
|
|
7626
|
-
"filename": "src/nextjs-
|
|
7627
|
-
"line":
|
|
7618
|
+
"filename": "src/root-constructs/nextjs-regional-containers.ts",
|
|
7619
|
+
"line": 32
|
|
7628
7620
|
},
|
|
7629
|
-
"name": "
|
|
7621
|
+
"name": "nextjsContainers",
|
|
7622
|
+
"optional": true,
|
|
7630
7623
|
"type": {
|
|
7631
|
-
"fqn": "
|
|
7624
|
+
"fqn": "cdk-nextjs.NextjsContainersOverrides"
|
|
7632
7625
|
}
|
|
7633
7626
|
},
|
|
7634
7627
|
{
|
|
@@ -7638,32 +7631,54 @@
|
|
|
7638
7631
|
},
|
|
7639
7632
|
"immutable": true,
|
|
7640
7633
|
"locationInModule": {
|
|
7641
|
-
"filename": "src/nextjs-
|
|
7642
|
-
"line":
|
|
7634
|
+
"filename": "src/root-constructs/nextjs-regional-containers.ts",
|
|
7635
|
+
"line": 31
|
|
7643
7636
|
},
|
|
7644
|
-
"name": "
|
|
7637
|
+
"name": "nextjsRegionalContainers",
|
|
7638
|
+
"optional": true,
|
|
7645
7639
|
"type": {
|
|
7646
|
-
"
|
|
7640
|
+
"fqn": "cdk-nextjs.NextjsRegionalContainersConstructOverrides"
|
|
7647
7641
|
}
|
|
7648
|
-
}
|
|
7642
|
+
}
|
|
7643
|
+
],
|
|
7644
|
+
"symbolId": "src/root-constructs/nextjs-regional-containers:NextjsRegionalContainersOverrides"
|
|
7645
|
+
},
|
|
7646
|
+
"cdk-nextjs.NextjsRegionalContainersProps": {
|
|
7647
|
+
"assembly": "cdk-nextjs",
|
|
7648
|
+
"datatype": true,
|
|
7649
|
+
"docs": {
|
|
7650
|
+
"stability": "stable"
|
|
7651
|
+
},
|
|
7652
|
+
"fqn": "cdk-nextjs.NextjsRegionalContainersProps",
|
|
7653
|
+
"interfaces": [
|
|
7654
|
+
"cdk-nextjs.NextjsBaseProps"
|
|
7655
|
+
],
|
|
7656
|
+
"kind": "interface",
|
|
7657
|
+
"locationInModule": {
|
|
7658
|
+
"filename": "src/root-constructs/nextjs-regional-containers.ts",
|
|
7659
|
+
"line": 35
|
|
7660
|
+
},
|
|
7661
|
+
"name": "NextjsRegionalContainersProps",
|
|
7662
|
+
"properties": [
|
|
7649
7663
|
{
|
|
7650
7664
|
"abstract": true,
|
|
7651
7665
|
"docs": {
|
|
7652
|
-
"stability": "stable"
|
|
7666
|
+
"stability": "stable",
|
|
7667
|
+
"summary": "Override props of any construct."
|
|
7653
7668
|
},
|
|
7654
7669
|
"immutable": true,
|
|
7655
7670
|
"locationInModule": {
|
|
7656
|
-
"filename": "src/nextjs-
|
|
7657
|
-
"line":
|
|
7671
|
+
"filename": "src/root-constructs/nextjs-regional-containers.ts",
|
|
7672
|
+
"line": 39
|
|
7658
7673
|
},
|
|
7659
7674
|
"name": "overrides",
|
|
7660
7675
|
"optional": true,
|
|
7661
7676
|
"type": {
|
|
7662
|
-
"fqn": "cdk-nextjs.
|
|
7677
|
+
"fqn": "cdk-nextjs.NextjsRegionalContainersOverrides"
|
|
7663
7678
|
}
|
|
7664
7679
|
}
|
|
7665
7680
|
],
|
|
7666
|
-
"symbolId": "src/nextjs-
|
|
7681
|
+
"symbolId": "src/root-constructs/nextjs-regional-containers:NextjsRegionalContainersProps"
|
|
7667
7682
|
},
|
|
7668
7683
|
"cdk-nextjs.NextjsStaticAssets": {
|
|
7669
7684
|
"assembly": "cdk-nextjs",
|
|
@@ -7816,7 +7831,7 @@
|
|
|
7816
7831
|
"fqn": "cdk-nextjs.NextjsType",
|
|
7817
7832
|
"kind": "enum",
|
|
7818
7833
|
"locationInModule": {
|
|
7819
|
-
"filename": "src/
|
|
7834
|
+
"filename": "src/constants.ts",
|
|
7820
7835
|
"line": 1
|
|
7821
7836
|
},
|
|
7822
7837
|
"members": [
|
|
@@ -7840,7 +7855,7 @@
|
|
|
7840
7855
|
}
|
|
7841
7856
|
],
|
|
7842
7857
|
"name": "NextjsType",
|
|
7843
|
-
"symbolId": "src/
|
|
7858
|
+
"symbolId": "src/constants:NextjsType"
|
|
7844
7859
|
},
|
|
7845
7860
|
"cdk-nextjs.NextjsVpc": {
|
|
7846
7861
|
"assembly": "cdk-nextjs",
|
|
@@ -8592,6 +8607,140 @@
|
|
|
8592
8607
|
],
|
|
8593
8608
|
"symbolId": "src/generated-structs/OptionalClusterProps:OptionalClusterProps"
|
|
8594
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
|
+
},
|
|
8595
8744
|
"cdk-nextjs.OptionalDistributionProps": {
|
|
8596
8745
|
"assembly": "cdk-nextjs",
|
|
8597
8746
|
"datatype": true,
|
|
@@ -9019,7 +9168,7 @@
|
|
|
9019
9168
|
"immutable": true,
|
|
9020
9169
|
"locationInModule": {
|
|
9021
9170
|
"filename": "src/generated-structs/OptionalDockerImageAssetProps.ts",
|
|
9022
|
-
"line":
|
|
9171
|
+
"line": 120
|
|
9023
9172
|
},
|
|
9024
9173
|
"name": "assetName",
|
|
9025
9174
|
"optional": true,
|
|
@@ -9038,7 +9187,7 @@
|
|
|
9038
9187
|
"immutable": true,
|
|
9039
9188
|
"locationInModule": {
|
|
9040
9189
|
"filename": "src/generated-structs/OptionalDockerImageAssetProps.ts",
|
|
9041
|
-
"line":
|
|
9190
|
+
"line": 113
|
|
9042
9191
|
},
|
|
9043
9192
|
"name": "buildArgs",
|
|
9044
9193
|
"optional": true,
|
|
@@ -9062,7 +9211,7 @@
|
|
|
9062
9211
|
"immutable": true,
|
|
9063
9212
|
"locationInModule": {
|
|
9064
9213
|
"filename": "src/generated-structs/OptionalDockerImageAssetProps.ts",
|
|
9065
|
-
"line":
|
|
9214
|
+
"line": 104
|
|
9066
9215
|
},
|
|
9067
9216
|
"name": "buildSecrets",
|
|
9068
9217
|
"optional": true,
|
|
@@ -9086,7 +9235,7 @@
|
|
|
9086
9235
|
"immutable": true,
|
|
9087
9236
|
"locationInModule": {
|
|
9088
9237
|
"filename": "src/generated-structs/OptionalDockerImageAssetProps.ts",
|
|
9089
|
-
"line":
|
|
9238
|
+
"line": 97
|
|
9090
9239
|
},
|
|
9091
9240
|
"name": "buildSsh",
|
|
9092
9241
|
"optional": true,
|
|
@@ -9104,7 +9253,7 @@
|
|
|
9104
9253
|
"immutable": true,
|
|
9105
9254
|
"locationInModule": {
|
|
9106
9255
|
"filename": "src/generated-structs/OptionalDockerImageAssetProps.ts",
|
|
9107
|
-
"line":
|
|
9256
|
+
"line": 90
|
|
9108
9257
|
},
|
|
9109
9258
|
"name": "cacheDisabled",
|
|
9110
9259
|
"optional": true,
|
|
@@ -9122,7 +9271,7 @@
|
|
|
9122
9271
|
"immutable": true,
|
|
9123
9272
|
"locationInModule": {
|
|
9124
9273
|
"filename": "src/generated-structs/OptionalDockerImageAssetProps.ts",
|
|
9125
|
-
"line":
|
|
9274
|
+
"line": 84
|
|
9126
9275
|
},
|
|
9127
9276
|
"name": "cacheFrom",
|
|
9128
9277
|
"optional": true,
|
|
@@ -9145,7 +9294,7 @@
|
|
|
9145
9294
|
"immutable": true,
|
|
9146
9295
|
"locationInModule": {
|
|
9147
9296
|
"filename": "src/generated-structs/OptionalDockerImageAssetProps.ts",
|
|
9148
|
-
"line":
|
|
9297
|
+
"line": 78
|
|
9149
9298
|
},
|
|
9150
9299
|
"name": "cacheTo",
|
|
9151
9300
|
"optional": true,
|
|
@@ -9171,6 +9320,25 @@
|
|
|
9171
9320
|
"primitive": "string"
|
|
9172
9321
|
}
|
|
9173
9322
|
},
|
|
9323
|
+
{
|
|
9324
|
+
"abstract": true,
|
|
9325
|
+
"docs": {
|
|
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.",
|
|
9328
|
+
"stability": "stable",
|
|
9329
|
+
"summary": "A display name for this asset."
|
|
9330
|
+
},
|
|
9331
|
+
"immutable": true,
|
|
9332
|
+
"locationInModule": {
|
|
9333
|
+
"filename": "src/generated-structs/OptionalDockerImageAssetProps.ts",
|
|
9334
|
+
"line": 72
|
|
9335
|
+
},
|
|
9336
|
+
"name": "displayName",
|
|
9337
|
+
"optional": true,
|
|
9338
|
+
"type": {
|
|
9339
|
+
"primitive": "string"
|
|
9340
|
+
}
|
|
9341
|
+
},
|
|
9174
9342
|
{
|
|
9175
9343
|
"abstract": true,
|
|
9176
9344
|
"docs": {
|
|
@@ -9182,7 +9350,7 @@
|
|
|
9182
9350
|
"immutable": true,
|
|
9183
9351
|
"locationInModule": {
|
|
9184
9352
|
"filename": "src/generated-structs/OptionalDockerImageAssetProps.ts",
|
|
9185
|
-
"line":
|
|
9353
|
+
"line": 146
|
|
9186
9354
|
},
|
|
9187
9355
|
"name": "exclude",
|
|
9188
9356
|
"optional": true,
|
|
@@ -9205,7 +9373,7 @@
|
|
|
9205
9373
|
"immutable": true,
|
|
9206
9374
|
"locationInModule": {
|
|
9207
9375
|
"filename": "src/generated-structs/OptionalDockerImageAssetProps.ts",
|
|
9208
|
-
"line":
|
|
9376
|
+
"line": 126
|
|
9209
9377
|
},
|
|
9210
9378
|
"name": "extraHash",
|
|
9211
9379
|
"optional": true,
|
|
@@ -9241,7 +9409,7 @@
|
|
|
9241
9409
|
"immutable": true,
|
|
9242
9410
|
"locationInModule": {
|
|
9243
9411
|
"filename": "src/generated-structs/OptionalDockerImageAssetProps.ts",
|
|
9244
|
-
"line":
|
|
9412
|
+
"line": 138
|
|
9245
9413
|
},
|
|
9246
9414
|
"name": "followSymlinks",
|
|
9247
9415
|
"optional": true,
|
|
@@ -9259,7 +9427,7 @@
|
|
|
9259
9427
|
"immutable": true,
|
|
9260
9428
|
"locationInModule": {
|
|
9261
9429
|
"filename": "src/generated-structs/OptionalDockerImageAssetProps.ts",
|
|
9262
|
-
"line":
|
|
9430
|
+
"line": 132
|
|
9263
9431
|
},
|
|
9264
9432
|
"name": "ignoreMode",
|
|
9265
9433
|
"optional": true,
|
|
@@ -12483,7 +12651,7 @@
|
|
|
12483
12651
|
"immutable": true,
|
|
12484
12652
|
"locationInModule": {
|
|
12485
12653
|
"filename": "src/generated-structs/OptionalNextjsAssetsDeploymentProps.ts",
|
|
12486
|
-
"line":
|
|
12654
|
+
"line": 52
|
|
12487
12655
|
},
|
|
12488
12656
|
"name": "accessPoint",
|
|
12489
12657
|
"optional": true,
|
|
@@ -12500,7 +12668,7 @@
|
|
|
12500
12668
|
"immutable": true,
|
|
12501
12669
|
"locationInModule": {
|
|
12502
12670
|
"filename": "src/generated-structs/OptionalNextjsAssetsDeploymentProps.ts",
|
|
12503
|
-
"line":
|
|
12671
|
+
"line": 28
|
|
12504
12672
|
},
|
|
12505
12673
|
"name": "basePath",
|
|
12506
12674
|
"optional": true,
|
|
@@ -12516,9 +12684,9 @@
|
|
|
12516
12684
|
"immutable": true,
|
|
12517
12685
|
"locationInModule": {
|
|
12518
12686
|
"filename": "src/generated-structs/OptionalNextjsAssetsDeploymentProps.ts",
|
|
12519
|
-
"line":
|
|
12687
|
+
"line": 48
|
|
12520
12688
|
},
|
|
12521
|
-
"name": "
|
|
12689
|
+
"name": "buildId",
|
|
12522
12690
|
"optional": true,
|
|
12523
12691
|
"type": {
|
|
12524
12692
|
"primitive": "string"
|
|
@@ -12532,9 +12700,9 @@
|
|
|
12532
12700
|
"immutable": true,
|
|
12533
12701
|
"locationInModule": {
|
|
12534
12702
|
"filename": "src/generated-structs/OptionalNextjsAssetsDeploymentProps.ts",
|
|
12535
|
-
"line":
|
|
12703
|
+
"line": 44
|
|
12536
12704
|
},
|
|
12537
|
-
"name": "
|
|
12705
|
+
"name": "buildImageDigest",
|
|
12538
12706
|
"optional": true,
|
|
12539
12707
|
"type": {
|
|
12540
12708
|
"primitive": "string"
|
|
@@ -12544,12 +12712,13 @@
|
|
|
12544
12712
|
"abstract": true,
|
|
12545
12713
|
"docs": {
|
|
12546
12714
|
"default": "true",
|
|
12547
|
-
"stability": "stable"
|
|
12715
|
+
"stability": "stable",
|
|
12716
|
+
"summary": "If true, logs details in custom resource lambda."
|
|
12548
12717
|
},
|
|
12549
12718
|
"immutable": true,
|
|
12550
12719
|
"locationInModule": {
|
|
12551
12720
|
"filename": "src/generated-structs/OptionalNextjsAssetsDeploymentProps.ts",
|
|
12552
|
-
"line":
|
|
12721
|
+
"line": 23
|
|
12553
12722
|
},
|
|
12554
12723
|
"name": "debug",
|
|
12555
12724
|
"optional": true,
|
|
@@ -12565,7 +12734,7 @@
|
|
|
12565
12734
|
"immutable": true,
|
|
12566
12735
|
"locationInModule": {
|
|
12567
12736
|
"filename": "src/generated-structs/OptionalNextjsAssetsDeploymentProps.ts",
|
|
12568
|
-
"line":
|
|
12737
|
+
"line": 40
|
|
12569
12738
|
},
|
|
12570
12739
|
"name": "dockerImageCode",
|
|
12571
12740
|
"optional": true,
|
|
@@ -12581,7 +12750,7 @@
|
|
|
12581
12750
|
"immutable": true,
|
|
12582
12751
|
"locationInModule": {
|
|
12583
12752
|
"filename": "src/generated-structs/OptionalNextjsAssetsDeploymentProps.ts",
|
|
12584
|
-
"line":
|
|
12753
|
+
"line": 36
|
|
12585
12754
|
},
|
|
12586
12755
|
"name": "nextjsType",
|
|
12587
12756
|
"optional": true,
|
|
@@ -12599,7 +12768,7 @@
|
|
|
12599
12768
|
"filename": "src/generated-structs/OptionalNextjsAssetsDeploymentProps.ts",
|
|
12600
12769
|
"line": 17
|
|
12601
12770
|
},
|
|
12602
|
-
"name": "
|
|
12771
|
+
"name": "relativePathToPackage",
|
|
12603
12772
|
"optional": true,
|
|
12604
12773
|
"type": {
|
|
12605
12774
|
"primitive": "string"
|
|
@@ -12630,7 +12799,7 @@
|
|
|
12630
12799
|
"immutable": true,
|
|
12631
12800
|
"locationInModule": {
|
|
12632
12801
|
"filename": "src/generated-structs/OptionalNextjsAssetsDeploymentProps.ts",
|
|
12633
|
-
"line":
|
|
12802
|
+
"line": 32
|
|
12634
12803
|
},
|
|
12635
12804
|
"name": "vpc",
|
|
12636
12805
|
"optional": true,
|
|
@@ -12730,7 +12899,7 @@
|
|
|
12730
12899
|
"filename": "src/generated-structs/OptionalNextjsBuildProps.ts",
|
|
12731
12900
|
"line": 11
|
|
12732
12901
|
},
|
|
12733
|
-
"name": "
|
|
12902
|
+
"name": "relativePathToPackage",
|
|
12734
12903
|
"optional": true,
|
|
12735
12904
|
"type": {
|
|
12736
12905
|
"primitive": "string"
|
|
@@ -12778,9 +12947,9 @@
|
|
|
12778
12947
|
"immutable": true,
|
|
12779
12948
|
"locationInModule": {
|
|
12780
12949
|
"filename": "src/generated-structs/OptionalNextjsContainersProps.ts",
|
|
12781
|
-
"line":
|
|
12950
|
+
"line": 28
|
|
12782
12951
|
},
|
|
12783
|
-
"name": "
|
|
12952
|
+
"name": "buildId",
|
|
12784
12953
|
"optional": true,
|
|
12785
12954
|
"type": {
|
|
12786
12955
|
"primitive": "string"
|
|
@@ -12826,7 +12995,7 @@
|
|
|
12826
12995
|
"immutable": true,
|
|
12827
12996
|
"locationInModule": {
|
|
12828
12997
|
"filename": "src/generated-structs/OptionalNextjsContainersProps.ts",
|
|
12829
|
-
"line":
|
|
12998
|
+
"line": 36
|
|
12830
12999
|
},
|
|
12831
13000
|
"name": "healthCheckPath",
|
|
12832
13001
|
"optional": true,
|
|
@@ -12874,7 +13043,7 @@
|
|
|
12874
13043
|
"immutable": true,
|
|
12875
13044
|
"locationInModule": {
|
|
12876
13045
|
"filename": "src/generated-structs/OptionalNextjsContainersProps.ts",
|
|
12877
|
-
"line":
|
|
13046
|
+
"line": 32
|
|
12878
13047
|
},
|
|
12879
13048
|
"name": "vpc",
|
|
12880
13049
|
"optional": true,
|
|
@@ -12938,67 +13107,273 @@
|
|
|
12938
13107
|
"abstract": true,
|
|
12939
13108
|
"docs": {
|
|
12940
13109
|
"stability": "stable",
|
|
12941
|
-
"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."
|
|
12942
13317
|
},
|
|
12943
13318
|
"immutable": true,
|
|
12944
13319
|
"locationInModule": {
|
|
12945
|
-
"filename": "src/generated-structs/
|
|
13320
|
+
"filename": "src/generated-structs/OptionalNextjsPostDeployProps.ts",
|
|
12946
13321
|
"line": 27
|
|
12947
13322
|
},
|
|
12948
|
-
"name": "
|
|
13323
|
+
"name": "debug",
|
|
12949
13324
|
"optional": true,
|
|
12950
13325
|
"type": {
|
|
12951
|
-
"
|
|
13326
|
+
"primitive": "boolean"
|
|
12952
13327
|
}
|
|
12953
13328
|
},
|
|
12954
13329
|
{
|
|
12955
13330
|
"abstract": true,
|
|
12956
13331
|
"docs": {
|
|
12957
|
-
"stability": "stable"
|
|
13332
|
+
"stability": "stable",
|
|
13333
|
+
"summary": "CloudFront Distribution to invalidate."
|
|
12958
13334
|
},
|
|
12959
13335
|
"immutable": true,
|
|
12960
13336
|
"locationInModule": {
|
|
12961
|
-
"filename": "src/generated-structs/
|
|
12962
|
-
"line":
|
|
13337
|
+
"filename": "src/generated-structs/OptionalNextjsPostDeployProps.ts",
|
|
13338
|
+
"line": 21
|
|
12963
13339
|
},
|
|
12964
13340
|
"name": "distribution",
|
|
12965
13341
|
"optional": true,
|
|
12966
13342
|
"type": {
|
|
12967
|
-
"fqn": "aws-cdk-lib.aws_cloudfront.
|
|
13343
|
+
"fqn": "aws-cdk-lib.aws_cloudfront.IDistribution"
|
|
12968
13344
|
}
|
|
12969
13345
|
},
|
|
12970
13346
|
{
|
|
12971
13347
|
"abstract": true,
|
|
12972
13348
|
"docs": {
|
|
12973
|
-
"stability": "stable"
|
|
12974
|
-
"summary": "Required if `NextjsType.GLOBAL_FUNCTIONS`."
|
|
13349
|
+
"stability": "stable"
|
|
12975
13350
|
},
|
|
12976
13351
|
"immutable": true,
|
|
12977
13352
|
"locationInModule": {
|
|
12978
|
-
"filename": "src/generated-structs/
|
|
12979
|
-
"line":
|
|
13353
|
+
"filename": "src/generated-structs/OptionalNextjsPostDeployProps.ts",
|
|
13354
|
+
"line": 16
|
|
12980
13355
|
},
|
|
12981
|
-
"name": "
|
|
13356
|
+
"name": "relativePathToPackage",
|
|
12982
13357
|
"optional": true,
|
|
12983
13358
|
"type": {
|
|
12984
|
-
"
|
|
13359
|
+
"primitive": "string"
|
|
12985
13360
|
}
|
|
12986
13361
|
},
|
|
12987
13362
|
{
|
|
12988
13363
|
"abstract": true,
|
|
12989
13364
|
"docs": {
|
|
12990
13365
|
"stability": "stable",
|
|
12991
|
-
"summary": "Required
|
|
13366
|
+
"summary": "Required for `NextjsType.GlobalFunctions` and `NextjsType.GlobalContainers`."
|
|
12992
13367
|
},
|
|
12993
13368
|
"immutable": true,
|
|
12994
13369
|
"locationInModule": {
|
|
12995
|
-
"filename": "src/generated-structs/
|
|
12996
|
-
"line":
|
|
13370
|
+
"filename": "src/generated-structs/OptionalNextjsPostDeployProps.ts",
|
|
13371
|
+
"line": 12
|
|
12997
13372
|
},
|
|
12998
|
-
"name": "
|
|
13373
|
+
"name": "staticAssetsBucket",
|
|
12999
13374
|
"optional": true,
|
|
13000
13375
|
"type": {
|
|
13001
|
-
"fqn": "aws-cdk-lib.
|
|
13376
|
+
"fqn": "aws-cdk-lib.aws_s3.Bucket"
|
|
13002
13377
|
}
|
|
13003
13378
|
},
|
|
13004
13379
|
{
|
|
@@ -13008,54 +13383,32 @@
|
|
|
13008
13383
|
},
|
|
13009
13384
|
"immutable": true,
|
|
13010
13385
|
"locationInModule": {
|
|
13011
|
-
"filename": "src/generated-structs/
|
|
13012
|
-
"line":
|
|
13013
|
-
},
|
|
13014
|
-
"name": "nextjsType",
|
|
13015
|
-
"optional": true,
|
|
13016
|
-
"type": {
|
|
13017
|
-
"fqn": "cdk-nextjs.NextjsType"
|
|
13018
|
-
}
|
|
13019
|
-
},
|
|
13020
|
-
{
|
|
13021
|
-
"abstract": true,
|
|
13022
|
-
"docs": {
|
|
13023
|
-
"stability": "stable",
|
|
13024
|
-
"summary": "Path to directory of Next.js app's public directory. Used to add static behaviors to distribution."
|
|
13025
|
-
},
|
|
13026
|
-
"immutable": true,
|
|
13027
|
-
"locationInModule": {
|
|
13028
|
-
"filename": "src/generated-structs/OptionalNextjsDistributionProps.ts",
|
|
13029
|
-
"line": 36
|
|
13386
|
+
"filename": "src/generated-structs/OptionalNextjsPostDeployProps.ts",
|
|
13387
|
+
"line": 31
|
|
13030
13388
|
},
|
|
13031
|
-
"name": "
|
|
13389
|
+
"name": "vpc",
|
|
13032
13390
|
"optional": true,
|
|
13033
13391
|
"type": {
|
|
13034
|
-
"
|
|
13035
|
-
"elementtype": {
|
|
13036
|
-
"fqn": "cdk-nextjs.PublicDirEntry"
|
|
13037
|
-
},
|
|
13038
|
-
"kind": "array"
|
|
13039
|
-
}
|
|
13392
|
+
"fqn": "aws-cdk-lib.aws_ec2.IVpc"
|
|
13040
13393
|
}
|
|
13041
13394
|
}
|
|
13042
13395
|
],
|
|
13043
|
-
"symbolId": "src/generated-structs/
|
|
13396
|
+
"symbolId": "src/generated-structs/OptionalNextjsPostDeployProps:OptionalNextjsPostDeployProps"
|
|
13044
13397
|
},
|
|
13045
|
-
"cdk-nextjs.
|
|
13398
|
+
"cdk-nextjs.OptionalNextjsVpcProps": {
|
|
13046
13399
|
"assembly": "cdk-nextjs",
|
|
13047
13400
|
"datatype": true,
|
|
13048
13401
|
"docs": {
|
|
13049
13402
|
"stability": "stable",
|
|
13050
|
-
"summary": "
|
|
13403
|
+
"summary": "OptionalNextjsVpcProps."
|
|
13051
13404
|
},
|
|
13052
|
-
"fqn": "cdk-nextjs.
|
|
13405
|
+
"fqn": "cdk-nextjs.OptionalNextjsVpcProps",
|
|
13053
13406
|
"kind": "interface",
|
|
13054
13407
|
"locationInModule": {
|
|
13055
|
-
"filename": "src/generated-structs/
|
|
13056
|
-
"line":
|
|
13408
|
+
"filename": "src/generated-structs/OptionalNextjsVpcProps.ts",
|
|
13409
|
+
"line": 8
|
|
13057
13410
|
},
|
|
13058
|
-
"name": "
|
|
13411
|
+
"name": "OptionalNextjsVpcProps",
|
|
13059
13412
|
"properties": [
|
|
13060
13413
|
{
|
|
13061
13414
|
"abstract": true,
|
|
@@ -13064,8 +13417,25 @@
|
|
|
13064
13417
|
},
|
|
13065
13418
|
"immutable": true,
|
|
13066
13419
|
"locationInModule": {
|
|
13067
|
-
"filename": "src/generated-structs/
|
|
13068
|
-
"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
|
|
13069
13439
|
},
|
|
13070
13440
|
"name": "vpc",
|
|
13071
13441
|
"optional": true,
|
|
@@ -13074,58 +13444,41 @@
|
|
|
13074
13444
|
}
|
|
13075
13445
|
}
|
|
13076
13446
|
],
|
|
13077
|
-
"symbolId": "src/generated-structs/
|
|
13447
|
+
"symbolId": "src/generated-structs/OptionalNextjsVpcProps:OptionalNextjsVpcProps"
|
|
13078
13448
|
},
|
|
13079
|
-
"cdk-nextjs.
|
|
13449
|
+
"cdk-nextjs.OptionalPostDeployCustomResourceProperties": {
|
|
13080
13450
|
"assembly": "cdk-nextjs",
|
|
13081
13451
|
"datatype": true,
|
|
13082
13452
|
"docs": {
|
|
13083
13453
|
"stability": "stable",
|
|
13084
|
-
"summary": "
|
|
13454
|
+
"summary": "OptionalPostDeployCustomResourceProperties."
|
|
13085
13455
|
},
|
|
13086
|
-
"fqn": "cdk-nextjs.
|
|
13456
|
+
"fqn": "cdk-nextjs.OptionalPostDeployCustomResourceProperties",
|
|
13087
13457
|
"kind": "interface",
|
|
13088
13458
|
"locationInModule": {
|
|
13089
|
-
"filename": "src/generated-structs/
|
|
13090
|
-
"line":
|
|
13459
|
+
"filename": "src/generated-structs/OptionalPostDeployCustomResourceProperties.ts",
|
|
13460
|
+
"line": 6
|
|
13091
13461
|
},
|
|
13092
|
-
"name": "
|
|
13462
|
+
"name": "OptionalPostDeployCustomResourceProperties",
|
|
13093
13463
|
"properties": [
|
|
13094
13464
|
{
|
|
13095
13465
|
"abstract": true,
|
|
13096
13466
|
"docs": {
|
|
13467
|
+
"remarks": "Used to prune FileSystem of directories\nwith old build ids and prune S3 based on metadat and `msTtl`",
|
|
13097
13468
|
"stability": "stable",
|
|
13098
|
-
"summary": "
|
|
13469
|
+
"summary": "Build ID of current deployment."
|
|
13099
13470
|
},
|
|
13100
13471
|
"immutable": true,
|
|
13101
13472
|
"locationInModule": {
|
|
13102
|
-
"filename": "src/generated-structs/
|
|
13103
|
-
"line":
|
|
13473
|
+
"filename": "src/generated-structs/OptionalPostDeployCustomResourceProperties.ts",
|
|
13474
|
+
"line": 42
|
|
13104
13475
|
},
|
|
13105
|
-
"name": "
|
|
13476
|
+
"name": "buildId",
|
|
13106
13477
|
"optional": true,
|
|
13107
13478
|
"type": {
|
|
13108
|
-
"
|
|
13479
|
+
"primitive": "string"
|
|
13109
13480
|
}
|
|
13110
|
-
}
|
|
13111
|
-
],
|
|
13112
|
-
"symbolId": "src/generated-structs/OptionalNextjsInvalidationProps:OptionalNextjsInvalidationProps"
|
|
13113
|
-
},
|
|
13114
|
-
"cdk-nextjs.OptionalNextjsVpcProps": {
|
|
13115
|
-
"assembly": "cdk-nextjs",
|
|
13116
|
-
"datatype": true,
|
|
13117
|
-
"docs": {
|
|
13118
|
-
"stability": "stable",
|
|
13119
|
-
"summary": "OptionalNextjsVpcProps."
|
|
13120
|
-
},
|
|
13121
|
-
"fqn": "cdk-nextjs.OptionalNextjsVpcProps",
|
|
13122
|
-
"kind": "interface",
|
|
13123
|
-
"locationInModule": {
|
|
13124
|
-
"filename": "src/generated-structs/OptionalNextjsVpcProps.ts",
|
|
13125
|
-
"line": 8
|
|
13126
|
-
},
|
|
13127
|
-
"name": "OptionalNextjsVpcProps",
|
|
13128
|
-
"properties": [
|
|
13481
|
+
},
|
|
13129
13482
|
{
|
|
13130
13483
|
"abstract": true,
|
|
13131
13484
|
"docs": {
|
|
@@ -13133,34 +13486,74 @@
|
|
|
13133
13486
|
},
|
|
13134
13487
|
"immutable": true,
|
|
13135
13488
|
"locationInModule": {
|
|
13136
|
-
"filename": "src/generated-structs/
|
|
13137
|
-
"line":
|
|
13489
|
+
"filename": "src/generated-structs/OptionalPostDeployCustomResourceProperties.ts",
|
|
13490
|
+
"line": 35
|
|
13138
13491
|
},
|
|
13139
|
-
"name": "
|
|
13492
|
+
"name": "buildImageDigest",
|
|
13140
13493
|
"optional": true,
|
|
13141
13494
|
"type": {
|
|
13142
|
-
"
|
|
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
|
+
}
|
|
13143
13518
|
}
|
|
13144
13519
|
},
|
|
13145
13520
|
{
|
|
13146
13521
|
"abstract": true,
|
|
13147
13522
|
"docs": {
|
|
13523
|
+
"default": "(1000 * 60 * 60 * 24 * 30).toString()",
|
|
13524
|
+
"remarks": "Must be string because of CloudFormation Custom Resource limitation",
|
|
13148
13525
|
"stability": "stable",
|
|
13149
|
-
"summary": "
|
|
13526
|
+
"summary": "Time to live in milliseconds."
|
|
13150
13527
|
},
|
|
13151
13528
|
"immutable": true,
|
|
13152
13529
|
"locationInModule": {
|
|
13153
|
-
"filename": "src/generated-structs/
|
|
13154
|
-
"line":
|
|
13530
|
+
"filename": "src/generated-structs/OptionalPostDeployCustomResourceProperties.ts",
|
|
13531
|
+
"line": 31
|
|
13155
13532
|
},
|
|
13156
|
-
"name": "
|
|
13533
|
+
"name": "msTtl",
|
|
13157
13534
|
"optional": true,
|
|
13158
13535
|
"type": {
|
|
13159
|
-
"
|
|
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"
|
|
13160
13553
|
}
|
|
13161
13554
|
}
|
|
13162
13555
|
],
|
|
13163
|
-
"symbolId": "src/generated-structs/
|
|
13556
|
+
"symbolId": "src/generated-structs/OptionalPostDeployCustomResourceProperties:OptionalPostDeployCustomResourceProperties"
|
|
13164
13557
|
},
|
|
13165
13558
|
"cdk-nextjs.OptionalS3OriginBucketWithOACProps": {
|
|
13166
13559
|
"assembly": "cdk-nextjs",
|
|
@@ -13851,6 +14244,113 @@
|
|
|
13851
14244
|
],
|
|
13852
14245
|
"symbolId": "src/generated-structs/OptionalVpcProps:OptionalVpcProps"
|
|
13853
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
|
+
},
|
|
13854
14354
|
"cdk-nextjs.PublicDirEntry": {
|
|
13855
14355
|
"assembly": "cdk-nextjs",
|
|
13856
14356
|
"datatype": true,
|
|
@@ -13861,7 +14361,7 @@
|
|
|
13861
14361
|
"kind": "interface",
|
|
13862
14362
|
"locationInModule": {
|
|
13863
14363
|
"filename": "src/nextjs-build/nextjs-build.ts",
|
|
13864
|
-
"line":
|
|
14364
|
+
"line": 128
|
|
13865
14365
|
},
|
|
13866
14366
|
"name": "PublicDirEntry",
|
|
13867
14367
|
"properties": [
|
|
@@ -13873,7 +14373,7 @@
|
|
|
13873
14373
|
"immutable": true,
|
|
13874
14374
|
"locationInModule": {
|
|
13875
14375
|
"filename": "src/nextjs-build/nextjs-build.ts",
|
|
13876
|
-
"line":
|
|
14376
|
+
"line": 130
|
|
13877
14377
|
},
|
|
13878
14378
|
"name": "isDirectory",
|
|
13879
14379
|
"type": {
|
|
@@ -13888,7 +14388,7 @@
|
|
|
13888
14388
|
"immutable": true,
|
|
13889
14389
|
"locationInModule": {
|
|
13890
14390
|
"filename": "src/nextjs-build/nextjs-build.ts",
|
|
13891
|
-
"line":
|
|
14391
|
+
"line": 129
|
|
13892
14392
|
},
|
|
13893
14393
|
"name": "name",
|
|
13894
14394
|
"type": {
|
|
@@ -13899,6 +14399,6 @@
|
|
|
13899
14399
|
"symbolId": "src/nextjs-build/nextjs-build:PublicDirEntry"
|
|
13900
14400
|
}
|
|
13901
14401
|
},
|
|
13902
|
-
"version": "0.
|
|
13903
|
-
"fingerprint": "
|
|
14402
|
+
"version": "0.4.0",
|
|
14403
|
+
"fingerprint": "4BMbDbnE3wm31xFUiRG6Nx06RUS6fflygGaMIXTGK70="
|
|
13904
14404
|
}
|