Skip to content

Commit 3baaf5c

Browse files
jrusso1020claude
andcommitted
chore(aws-lambda): fit the comment ratchet and the package size budget
chromium.ts loses the two doc lines on BUNDLED_SHELL_DIR and BUNDLED_SHELL_PATH; the names and the SAM template's comment already say what they are. @hyperframes/aws-lambda's unpacked budget goes from 290,508 to 298,000 bytes. The package unpacks to 295,324 bytes, up from the shared chrome-headless-shell staging module the ZIP and image scripts now import and from the README and docs that describe the two Chrome sources. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 5214b90 commit 3baaf5c

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

‎packages/aws-lambda/src/chromium.ts‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,7 @@ import { existsSync } from "node:fs";
3838
/** Discriminator for the two supported Chrome sources. */
3939
export type ChromeSource = "sparticuz" | "chrome-headless-shell";
4040

41-
/** Where `build-zip.ts --source=chrome-headless-shell` puts the whole shell folder, under /var/task. */
4241
export const BUNDLED_SHELL_DIR = "chrome-headless-shell-linux64";
43-
/** That shell's executable on Lambda: the SAM template and the CDK stack set HYPERFRAMES_LAMBDA_CHROME_PATH to it. */
4442
export const BUNDLED_SHELL_PATH = `/var/task/${BUNDLED_SHELL_DIR}/chrome-headless-shell`;
4543

4644
/**

‎scripts/package-size-budgets.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"@hyperframes/aws-lambda": {
33
"packed": 80500,
4-
"unpacked": 290508
4+
"unpacked": 298000
55
},
66
"@hyperframes/cli": {
77
"packed": 8577627,

0 commit comments

Comments
 (0)