Skip to content

fix: use nodejs20 runtime for Gen1 extension functions (v0.2.7)#797

Merged
DaemonLoki merged 7 commits into
mainfrom
fix/gen1-nodejs20-runtime-v0.2.7
May 29, 2026
Merged

fix: use nodejs20 runtime for Gen1 extension functions (v0.2.7)#797
DaemonLoki merged 7 commits into
mainfrom
fix/gen1-nodejs20-runtime-v0.2.7

Conversation

@Seetha-lab
Copy link
Copy Markdown
Contributor

Gen1 Cloud Functions fail to deploy with nodejs22 on many Firebase projects. Revert all extension runtimes and package engines to Node 20, which is the supported Gen1 target while auth triggers remain v1-only.

Fixes #711
Fixes #787

Seetha-lab and others added 7 commits May 27, 2026 14:21
Gen1 Cloud Functions fail to deploy with nodejs22 on many Firebase
projects. Revert all extension runtimes and package engines to Node 20,
which is the supported Gen1 target while auth triggers remain v1-only.

Fixes #711
Fixes #787

Co-authored-by: Cursor <cursoragent@cursor.com>
- Pin nodejs20 in emulator firebase configs
- Fix callable region (europe-west1) in token-generation tests
- Disable Jest watchman for CI stability

Co-authored-by: Cursor <cursoragent@cursor.com>
- Pin emulator project ID and auth/firestore emulator hosts
- Use longer sync timeouts when CI=true
- Validate extension env files before running integration suite

Co-authored-by: Cursor <cursoragent@cursor.com>
Hardcoding europe-west1 broke token-generation when CI ENV_LOCAL uses
us-central1. Load env in emulator setup and match getFunctions region.

Co-authored-by: Cursor <cursoragent@cursor.com>
Auth tests were starting only the functions emulator, so extension env
vars never reached Cloud Functions and Stream sync timed out. Start the
extensions emulator, drop duplicate functions deploy config, and call
ext-auth-chat-getStreamUserToken in the correct LOCATION region.

Co-authored-by: Cursor <cursoragent@cursor.com>
STREAM_API_KEY is a secret param in extension.yaml but CI wrote it to
.env.local only, so functions never received credentials. Add
prepare-extension-env.js to split secrets, sync into functions/, and
run it before validation and each emulator test suite.

Co-authored-by: Cursor <cursoragent@cursor.com>
@DaemonLoki DaemonLoki merged commit bd527dd into main May 29, 2026
1 check passed
@DaemonLoki DaemonLoki deleted the fix/gen1-nodejs20-runtime-v0.2.7 branch May 29, 2026 10:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants