Get code from firebase console which I deployed earlier

前端 未结 4 821
無奈伤痛
無奈伤痛 2020-11-28 09:16

I had created firebase functions in nodejs and deployed the code on firebase. The function was to send an email when the new user is created. I have lost the code now. Can w

4条回答
  •  余生分开走
    2020-11-28 09:49

    Note: the process below may work or not for your case. Don't rely on it as a replacement for keeping your code in a proper version control system.

    You can retrieve the code for your Cloud Functions from the Cloud Console.

    1. Go to this URL
    2. Select the project that the function is in
    3. Select a function from the list
    4. You will get to this page:

    5. Select the Source at the top

    6. Click the "Source location" link

    A zip file with the latest source of your function will start to download.

    Note that these files may periodically get deleted. In that case, the above process will not work to recover your source code.

提交回复
热议问题