Next.js Discord

Discord Forum

Static assets (images, CSS) not loading on a domain, but work fine on another Vercel domain

Unanswered
Abu Zain posted this in #help-forum
Open in Discord
I’m facing an issue where the assets are not loading.

The same deployment works perfectly on one domain but breaks (missing CSS and images) on the custom domain.

❌ Broken: https://omni-lime.vercel.app/login

✅ Working: https://s-app.omnisystems.co.uk/login

Both domains point to the same Vercel project and build — no code or environment differences.

Locally (vercel build && vercel serve), everything works fine, so the issue seems to be related to how Vercel serves static assets for the domain (CDN, cache, headers, or routing).

0 Replies