UNPKG

cdk-nextjs-standalone

Version:

Deploy a NextJS app to AWS using CDK and OpenNext.

39 lines (38 loc) 1.27 kB
import type { aws_cloudfront, interfaces } from 'aws-cdk-lib'; /** * OptionalCloudFrontFunctionProps */ export interface OptionalCloudFrontFunctionProps { /** * The runtime environment for the function. * @default FunctionRuntime.JS_1_0 (unless `keyValueStore` is specified, then `FunctionRuntime.JS_2_0`) * @stability stable */ readonly runtime?: aws_cloudfront.FunctionRuntime; /** * The Key Value Store to associate with this function. * In order to associate a Key Value Store, the `runtime` must be * `cloudfront-js-2.0` or newer. * @default - no key value store is associated * @stability stable */ readonly keyValueStore?: interfaces.aws_cloudfront.IKeyValueStoreRef; /** * A name to identify the function. * @default - generated from the `id` * @stability stable */ readonly functionName?: string; /** * A comment to describe the function. * @default - same as `functionName` * @stability stable */ readonly comment?: string; /** * A flag that determines whether to automatically publish the function to the LIVE stage when it’s created. * @default - true * @stability stable */ readonly autoPublish?: boolean; }