Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shop page entry #2610

Open
wants to merge 16 commits into
base: master
Choose a base branch
from

Conversation

engdevopsaapc
Copy link

cloudFrontOrigins[1].pathPatterns[
  this.pathPattern("/shop/*", routesManifest)
] = {
  minTTL: 0,
  defaultTTL: 0,
  maxTTL: 86400,
  forward: {
    cookies: "all",
    headers: routesManifest.i18n
      ? ["Accept-Language", "Authorization", "Host"]
      : ["Authorization", "Host"],
    queryString: true
  },
  // lambda@edge key is last and therefore cannot be overridden
  "lambda@edge": {
    "origin-request": `${defaultEdgeLambdaOutputs.arn}:${defaultEdgeLambdaPublishOutputs.version}`,
    "origin-response": `${defaultEdgeLambdaOutputs.arn}:${defaultEdgeLambdaPublishOutputs.version}`
  }
};
cloudFrontOrigins[1].pathPatterns[
  this.pathPattern("/shop", routesManifest)
] = {
  minTTL: 0,
  defaultTTL: 0,
  maxTTL: 86400,
  forward: {
    cookies: "all",
    headers: routesManifest.i18n
      ? ["Accept-Language", "Authorization", "Host"]
      : ["Authorization", "Host"],
    queryString: true
  },
  // lambda@edge key is last and therefore cannot be overridden
  "lambda@edge": {
    "origin-request": `${defaultEdgeLambdaOutputs.arn}:${defaultEdgeLambdaPublishOutputs.version}`,
    "origin-response": `${defaultEdgeLambdaOutputs.arn}:${defaultEdgeLambdaPublishOutputs.version}`
  }
};

@slsnextbot
Copy link
Collaborator

slsnextbot commented Jun 3, 2024

Handler Size Report

No changes to handler sizes.

Base Handler Sizes (kB) (commit e6367b5)

{
    "Lambda": {
        "Default Lambda": {
            "Standard": 1578,
            "Minified": 692
        },
        "Image Lambda": {
            "Standard": 1543,
            "Minified": 831
        }
    },
    "Lambda@Edge": {
        "Default Lambda": {
            "Standard": 1588,
            "Minified": 698
        },
        "Default Lambda V2": {
            "Standard": 1580,
            "Minified": 694
        },
        "API Lambda": {
            "Standard": 634,
            "Minified": 318
        },
        "Image Lambda": {
            "Standard": 1551,
            "Minified": 835
        },
        "Regeneration Lambda": {
            "Standard": 1233,
            "Minified": 566
        },
        "Regeneration Lambda V2": {
            "Standard": 1307,
            "Minified": 596
        }
    }
}

New Handler Sizes (kB) (commit 84bdc5e)

{
    "Lambda": {
        "Default Lambda": {
            "Standard": 1578,
            "Minified": 692
        },
        "Image Lambda": {
            "Standard": 1543,
            "Minified": 831
        }
    },
    "Lambda@Edge": {
        "Default Lambda": {
            "Standard": 1588,
            "Minified": 698
        },
        "Default Lambda V2": {
            "Standard": 1580,
            "Minified": 694
        },
        "API Lambda": {
            "Standard": 634,
            "Minified": 318
        },
        "Image Lambda": {
            "Standard": 1551,
            "Minified": 835
        },
        "Regeneration Lambda": {
            "Standard": 1233,
            "Minified": 566
        },
        "Regeneration Lambda V2": {
            "Standard": 1307,
            "Minified": 596
        }
    }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants