gpt4 book ai didi

node.js - firebase 函数 :hosting gives error: time to go build something extraordinary

转载 作者:太空宇宙 更新时间:2023-11-03 23:21:24 25 4
gpt4 key购买 nike

我可以仅通过托管来部署文件,效果很好但我尝试使用它所说的 firebase 函数:

Welcome
Firebase Hosting Setup Complete
You're seeing this because you've successfully setup Firebase Hosting. Now it's time to go build something extraordinary!

OPEN HOSTING DOCUMENTATION

我的index.js代码在这里:-

const functions = require('firebase-functions');

// // Create and Deploy Your First Cloud Functions
// // https://firebase.google.com/docs/functions/write-firebase-functions
//
exports.helloWorld = functions.https.onRequest((request, response) => {
response.send("Hello from Firebase!");
});

链接到我的项目:-

https://influence-cbc3f.firebaseapp.com/

最佳答案

如果你想部署函数,那么使用这个:

firebase deploy --only functions

更多信息在这里:

https://firebase.google.com/docs/functions/get-started

关于node.js - firebase 函数 :hosting gives error: time to go build something extraordinary,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49299745/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com