如何查看Firebase服务日志?

时间:2019-06-01 12:15:04

标签: firebase express nuxt.js ssr

我想用Nuxt.js创建SSR应用并将其部署到Firebase。

我尝试Cannot GET /在本地运行Firebase并获得成功。 因此,我在浏览器中访问了指定的URL(http://localhost:5001/foo/foo/widgets), 但在浏览器上仅显示Cannot GET /

并且浏览器(Chrome)devtool和终端不显示错误日志。

我不明白为什么发生Cannot GET /

我在哪里可以检查此错误?

为什么要 import * as functions from "firebase-functions"; process.env.DEBUG = "nuxt:*"; import * as express from "express"; const app = express(); const { Nuxt } = require("nuxt"); const config = { dev: false, ssr: true, ssrLog: true, buildDir: "nuxt", build: { publicPath: "/" } }; const nuxt = new Nuxt(config); app.use(nuxt.render); exports.widgets = functions.https.onRequest(app);

请帮助我。


project_root / functions / lib / index.js

with dates as (
      select @startdate as dte
      union all
      select dateadd(day, 1, dte)
      from dates
      where dte < @enddate
     )
select *
from dates
option (maxrecursion 0);

0 个答案:

没有答案
相关问题