1 min read

When the API is down: SSR fallbacks in Nuxt (Sample post)

A sample post: rendering the layout from fallback data so a server outage never produces a blank page.

This is a sample post created by seed_mock. Replace or delete it in Admin.

The idea

Merge whatever the API returns over a small, safe default, and return HTTP 503 from the server render so crawlers try again later.

Next step

Working on something similar?

Tell me what you are building. I reply within a day or two, and a short call is usually enough to see whether I can help.