小编DrC*_*ein的帖子

如何在google firebase托管服务中使用nodejs?

我想创建一个nodejs应用程序,但是当我尝试使用google的托管firebase创建应用程序时,我只能修改index.html文件,但我不能将index.js文件用作nodejs应用程序.
我不知道该怎么做.
这是firebase.json文件:

{
  "database":{"rules":"database.rules.json"},
  "hosting":
  {
    "public":"public",
    "rewrites": 
    [{
      "source":"**",
      "destination":"/index.html"
    }]
  }
}
Run Code Online (Sandbox Code Playgroud)

但我不能修改该文件来执行nodejs应用程序.有帮助吗?

json firebase

11
推荐指数
1
解决办法
2万
查看次数

标签 统计

firebase ×1

json ×1