You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
firestore-send-email kit/extension parity. Priority: low. ext:migrate cuts off any setting that contains #.
Difference
Extension: values are stored as entered. DEFAULT_FROM and MAIL_COLLECTION accept #, and DEFAULT_REPLY_TO, USERS_COLLECTION and TEMPLATES_COLLECTION aren't validated.
Kit:
ext:migrate, ext:export and kits:install write values to .env unquoted unless they contain an escape character.
The .env parser then treats # as the start of a comment.
The kit never re-validates .env values, so nothing catches the shortened value.
Reproduced
Values written and read back with firebase-tools 15.31.0's own .env writer and parser:
The writer is firebase-tools functions/env.jsformatUserEnvForWrite.
Resolution
Fix upstream in firebase-tools by quoting values that contain # (or whitespace) when writing .env. Until then, document it in the kit's migration notes.
Activity
firestore-send-emailkit tracking issue #3290