首页 > 解决方案 > firebase 云功能在部署时更改名称

问题描述

几周前,我创建并部署了一些云功能,但现在当我想进行一些更改时,我的功能以“-default”后缀部署,firebase 没有看到以前的功能,我没有更改任何名称或导出方法,有人知道为什么会这样吗?

这就是我在 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;

标签: typescriptfirebasegoogle-cloud-functionsfirebase-tools

解决方案


推荐阅读