UNPKG

cdk-nextjs

Version:

Deploy Next.js apps on AWS with CDK

27 lines (26 loc) 1.17 kB
import { DockerImageCode, DockerImageFunction, FunctionUrl } from "aws-cdk-lib/aws-lambda"; import { Construct } from "constructs"; import { NextjsComputeBaseProps } from "./nextjs-compute-base-props"; import { NextjsType } from "../constants"; import { OptionalDockerImageFunctionProps } from "../generated-structs/OptionalDockerImageFunctionProps"; import { OptionalFunctionUrlProps } from "../generated-structs/OptionalFunctionUrlProps"; export interface NextjsFunctionsOverrides { readonly dockerImageFunctionProps?: OptionalDockerImageFunctionProps; readonly functionUrlProps?: OptionalFunctionUrlProps; } export interface NextjsFunctionsProps extends NextjsComputeBaseProps { readonly dockerImageCode: DockerImageCode; readonly overrides?: NextjsFunctionsOverrides; readonly buildId: string; readonly nextjsType: NextjsType; } /** * Run Next.js in functions on AWS with AWS Lambda. */ export declare class NextjsFunctions extends Construct { function: DockerImageFunction; functionUrl?: FunctionUrl; private props; constructor(scope: Construct, id: string, props: NextjsFunctionsProps); private createFunction; }