The storage-resize-images kit's FUNCTION_MEMORY prompt preselects 512 MB; the extension preselected 1 GB.
A user who accepts the prompt gets a 512 MB function where the extension gave them 1 GB; the README recommends at least 2 GB for animated GIFs.
Same class as MAKE_PUBLIC, which #3148 fixed by declaring the param as a string. FUNCTION_MEMORY is the only other non-string select across kits/*/src/config.ts whose default is not the first option.
Options: declare it as defineString with "512" / "1024" / ... values and parseInt at read (stored .env values unchanged), or wait for the firebase-tools fix. Either way, add a test that pins the default and option order.
Related: #3148, #2974, firebase/firebase-tools#11053
The
storage-resize-imageskit'sFUNCTION_MEMORYprompt preselects 512 MB; the extension preselected 1 GB.defineInt("FUNCTION_MEMORY", { default: 1024, input: select({ "512 MB": 512, "1 GB": 1024, ... }) })(kits/storage-resize-images/src/config.ts:201-214)type: select, first option512,default: 1024(storage-resize-images/extension.yaml)promptSelectpasses a non-stringdefaultto inquirer unchanged but stringifies every option value, so1024matches no choice and the first option is highlighted (functions params: select prompt ignores a non-string default and preselects the first option firebase-tools#11053).A user who accepts the prompt gets a 512 MB function where the extension gave them 1 GB; the README recommends at least 2 GB for animated GIFs.
Same class as
MAKE_PUBLIC, which #3148 fixed by declaring the param as a string.FUNCTION_MEMORYis the only other non-string select acrosskits/*/src/config.tswhose default is not the first option.Options: declare it as
defineStringwith"512"/"1024"/ ... values andparseIntat read (stored.envvalues unchanged), or wait for the firebase-tools fix. Either way, add a test that pins the default and option order.Related: #3148, #2974, firebase/firebase-tools#11053