Amplify Toolbox
    Preparing search index...

    Type Alias SkewProtectionConfig

    Configuration for cookie-based skew protection.

    When enabled, CloudFront Functions route returning users to the build they originally started their session on (via a cookie), preventing asset mismatches during rolling deployments.

    type SkewProtectionConfig = {
        enabled: boolean;
        maxAge?: number;
    }
    Index

    Properties

    Properties

    enabled: boolean
    maxAge?: number

    How long (in seconds) old-build cookies remain valid. After this period, the user is routed to the latest build.

    86400 (24 hours)