cdk-nextjs
Version:
Deploy Next.js apps on AWS with CDK
34 lines (33 loc) • 1.77 kB
TypeScript
export declare enum NextjsType {
GLOBAL_CONTAINERS = "GLOBAL_CONTAINERS",
GLOBAL_FUNCTIONS = "GLOBAL_FUNCTIONS",
REGIONAL_CONTAINERS = "REGIONAL_CONTAINERS",
REGIONAL_FUNCTIONS = "REGIONAL_FUNCTIONS"
}
/**
* Mount path in container for EFS. Next.js image optimization, data, and full
* route cache will be symlinked to this location.
*
* Must comply with pattern: ^/mnt/[a-zA-Z0-9-_.]+$ due to lambda requirement.
* Fargate doesn't have this same requirement but we share code for lambda and
* fargate.
* @see https://docs.aws.amazon.com/lambda/latest/api/API_FileSystemConfig.html
*/
export declare const MOUNT_PATH = "/mnt/cdk-nextjs";
export declare const BUILD_ID_ARG_NAME = "BUILD_ID";
export declare const BUILDER_IMAGE_ALIAS_ARG_NAME = "BUILDER_IMAGE_ALIAS";
export declare const CACHE_PATH_ARG_NAME = "CACHE_PATH";
export declare const DATA_CACHE_PATH_ARG_NAME = "DATA_CACHE_PATH";
export declare const IMAGE_CACHE_PATH_ARG_NAME = "IMAGE_CACHE_PATH";
export declare const MOUNT_PATH_ARG_NAME = "MOUNT_PATH";
export declare const PUBLIC_PATH_ARG_NAME = "PUBLIC_PATH";
export declare const RELATIVE_PATH_TO_PACKAGE_ARG_NAME = "RELATIVE_PATH_TO_PACKAGE";
export declare const CACHE_PATH = ".next/cache";
export declare const DATA_CACHE_PATH = ".next/cache/fetch-cache";
export declare const IMAGE_CACHE_PATH = ".next/cache/images";
export declare const PUBLIC_PATH = "public";
export declare const SERVER_DIST_PATH = ".next/server";
export declare const FULL_ROUTE_CACHE_PATH = ".next/server/app";
export declare const STATIC_PATH = ".next/static";
export declare const CDK_NEXTJS_SERVER_DIST_DIR_ENV_VAR_NAME = "CDK_NEXTJS_SERVER_DIST_DIR";
export declare const INJECT_CDK_NEXTJS_BUILD_ENV_VARS = "{{INJECT_CDK_NEXTJS_BUILD_ENV_VARS}}";