代码之家  ›  专栏  ›  技术社区  ›  rgoncalv

是否可以在两个单独的文件中使用云函数后台触发器和express应用程序?

  •  0
  • rgoncalv  · 技术社区  · 6 年前

    我想知道是否有可能分开,然后,在一个单一的 firebase deploy 命令,将两个文件发送到服务器。

    1 回复  |  直到 6 年前
        1
  •  0
  •   Doug Stevenson    6 年前

    是的,有可能。 Use require() to pull in modules 从您创建的其他JavaScript文件。或者,如果你用的是打字, create modules and import them .