Menu

Fixing Broken Styles After Deploy: Next.js, Cloud Run, and a Custom GCS Cache Handler
📰

Fixing Broken Styles After Deploy: Next.js, Cloud Run, and a Custom GCS Cache Handler

DEV Community: nextjs·Eamon Cusic, Jr.·9 days ago
#kJub7IBO
#devtonextjs#devto#dev#cache#next
Long article (1683 words) — no AI summary yet.
Reading 0:00
15s threshold

You ship an update. The deploy succeeds. Then someone emails: "The site looks broken — no styling, weird layout." You hard-refresh and everything looks fine on your machine. So what happened?

This post explains a real production issue we fixed while building Great Lakes Additive — a Next.js storefront on Google Cloud Run. If you build or operate modern web apps, the pattern applies beyond this stack: cached pages can outlive the assets they reference , and serverless hosting makes that mismatch show up fast.

Who this is for: engineers self-hosting Next.js on GCP, and founders or product owners who want to understand why a deploy can look fine in CI but broken for real users — without needing to read the source code.

The short version

If you are… Here's the headline

Business / product A deploy replaced the server, but some users still received an old copy of the page that pointed at CSS files that no longer exist.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.