我可以仅通过托管来部署文件,它工作正常,但我尝试使用它说的 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/