typescript - firebase 云功能在部署时更改名称
问题描述
几周前,我创建并部署了一些云功能,但现在当我想进行一些更改时,我的功能以“-default”后缀部署,firebase 没有看到以前的功能,我没有更改任何名称或导出方法,有人知道为什么会这样吗?
这是我从 index.ts 导出的函数
index.js
exports.newGame = newGame;
exports.newRound = newRound;
exports.syncTime = syncTime;
exports.checkAnswersStatus = checkAnswersStatus;
exports.checkVotesStatus = checkVotesStatus;
这就是我创建新功能的方式:
新游戏.ts
const newGame = functions.https.onCall( async (data:any,context:any) => {
<function content>
});
export default newGame;
解决方案
推荐阅读
- python-3.x - Python 3,我可以判断以二进制模式打开的文件是否包含文本?
- android - 如何在我的应用程序中包含 64 位和 32 位本机代码
- excel - 如何将输入的信息复制到用户表单中
- automation - QUOKA.DE 上的 IMACROS \ ajax 文本形式的动态 ID
- tensorflow - 如何创建仅在评估阶段生效的 keras 层(并且在训练期间是透明的)?
- office-js - Excel-addin-Office API Javascript - office.js 警告和 telemetryproxy.html 未找到
- android-studio - Android 后台服务正在运行但在重新启动时应用程序即使在实施广播接收器后也不会启动
- redux - 如何使用 immer 将新密钥作为数组传递?
- android-studio - Crashlytics 未报告,结果为 202
- memory - 如何使用 gdb 将字节写入内存?