Server-side Rendering (SSR)

Every visit to this page triggers getServerData(). Gatsby Firebase adapter executes that handler in a Cloud Function, fetches fresh data from Dog CEO, and streams the HTML response back through Firebase Hosting.

{
  "dogUrl": "https://images.dog.ceo/breeds/spaniel-japanese/n02085782_2635.jpg",
  "status": "success",
  "fetchedAt": "2026-07-26T05:46:23.372Z"
}
Happy dog sourced at request time

Rendered at: 7/26/2026, 5:46:23 AM

Refresh the page to trigger a new Cloud Function invocation and fetch another photo.