This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { join } from 'path' | |
import type { Construct } from 'constructs' | |
import * as s3deploy from 'aws-cdk-lib/aws-s3-deployment' | |
type CacheControlMaxAge = '0' | '31536000' | |
type SiteBucketDeploymentProps = Omit<s3deploy.BucketDeploymentProps, 'sources'> & { | |
sitePaths: string[] | |
longCacheFileExtensions: string[] | |
} | |
type CachedBucketDeploymentProps = SiteBucketDeploymentProps & { maxAge: CacheControlMaxAge } |