Skip to content

storage-resize-images: FUNCTION_MEMORY prompt preselects 512 MB instead of the extension's 1 GB default #3156

Description

@CorieW

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions