firebase-functions:hosting gives error: time to go build something extraordinary

firebase-functions:hosting gives error: time to go build something extraordinary

我只能通过主机部署文件,效果很好 但我用它说的 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!");
     });

link 我的项目:-

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

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

firebase deploy --only functions

更多信息在这里:

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

如果您使用的是 Angular 6,则不要在以下步骤中提供“dist”:

? what do you want to use as public directory

您需要提供“dist/your_application_name

看看这篇优秀的文章 https://medium.com/@longboardcreator/deploying-angular-6-applications-to-firebase-hosting-b5dacde9c772