不支持的 Firebase Functions 服务?

Unsupported Firebase Functions services?

我正在尝试部署基于身份验证触发器的最小 Firebase 函数。我之前使用 https 和数据库触发器成功工作,但在部署身份验证触发器 (docs, reference) 时遇到错误。

import * as functions from 'firebase-functions';
import * as admin from 'firebase-admin';

admin.initializeApp();

exports.onCreateUser = functions
  .region('europe-west1')
  .auth.user()
  .onCreate((user: admin.auth.UserRecord, context: functions.EventContext) => {
    console.log(`Triggered On Create User: ${user.email}, ${user.uid}.`);
  });

我收到以下错误:

Ignoring trigger "onCreateUser" because the service "firebaseauth.googleapis.com" is not yet supported.

我尝试将我的引擎节点版本从 10 更改为 8 或将区域更改为 europe-west2us-central1 但我的配置的任何变化都会抛出这个错误。

我引用的文档没有提到对这些触发器的有限支持。是否有任何页面概述了不受支持的服务及其限制?

我好像搞混了 运行 servedeploy 的意图。正如一个非常敏感的支持团队告诉我的那样,serve 脚本启动了 emulator,目前仅限于以下范围:

  • 函数
  • Firestore
  • 实时数据库
  • 托管

For the development phase, however, you can make use of the interactive shell:

$ firebase functions:shell

✔  functions: Emulator started at http://localhost:5001

i  functions: Loaded functions: onCreateUser

firebase > onCreateUser({"uid":"99999","email":"test@testing.com"})

'Successfully invoked function.'

>  Triggered On Create User: test@testing.com, 99999.

>  Function returned undefined, expected Promise or value