Skip to content

Commit 8f7c13e

Browse files
docs: fix App Hosting log location per tyler-reitz's review
firebase functions:log reads Cloud Functions logs; App Hosting runs on Cloud Run, so that command surfaces nothing for an App Hosting deployment. Points instead at the backend's Logs tab (Runtime logs) in the Firebase console and a gcloud logging read command, both verified live against a real App Hosting backend, plus a link to Firebase's logging guide.
1 parent ef1a9ec commit 8f7c13e

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

‎docs/app-hosting.md‎

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,18 @@ If you have not deployed yet, follow Firebase's own guides: [Get started with Ap
1616

1717
A freshly deployed Angular SSR app usually *looks* fine in a browser, the page renders and works. But the server may be sending an almost-empty HTML shell and letting the browser do all the rendering. When that happens you lose the whole point of SSR: crawlers and link previews see no content, and first paint on slow devices is worse.
1818

19-
There is no error in the deploy output and no error in the browser. The only trace is a line in the server logs (`firebase functions:log`), which nothing prompts you to check.
19+
There is no error in the deploy output and no error in the browser. The only trace is in your backend's server logs, which nothing prompts you to check.
20+
21+
App Hosting runs on Cloud Run, not Cloud Functions, so its logs live in Cloud Logging:
22+
23+
- In the Firebase console, open your backend and go to its **Logs** tab, then look at **Runtime logs**.
24+
- From a terminal, use `gcloud`:
25+
26+
```bash
27+
gcloud logging read 'resource.type=cloud_run_revision AND resource.labels.service_name=YOUR_BACKEND_ID' --project YOUR_PROJECT_ID --limit 10
28+
```
29+
30+
See Firebase's [View logs and metrics](https://firebase.google.com/docs/app-hosting/logging) guide for more.
2031

2132
## The 30-second check to run after every deploy
2233

0 commit comments

Comments
 (0)