v0 storage

Static Assets Returning 404 After Deployment

Static assets such as images, fonts, PDFs, and other files that work perfectly in local development return 404 errors after deploying your v0-generated Next.js app to Vercel. The public folder contents are not being served, or asset paths are resolving incorrectly in production.

This commonly happens because v0 generates references to assets using relative paths that work in development but break when the application is deployed under a base path or when the build output restructures the file hierarchy.

Fonts loaded from the public folder may also fail to load, causing layout shifts as the browser falls back to system fonts, and favicon or Open Graph images referenced in metadata may return 404 in production.

Error Messages You Might See

GET /images/logo.png 404 (Not Found) Failed to load resource: the server responded with a status of 404 Module not found: Can't resolve './assets/image.png' @font-face failed to load: 404
GET /images/logo.png 404 (Not Found)Failed to load resource: the server responded with a status of 404Module not found: Can't resolve './assets/image.png'@font-face failed to load: 404

Common Causes

  • Case sensitivity mismatch — local filesystem (macOS/Windows) is case-insensitive but Vercel's Linux filesystem is case-sensitive
  • Relative paths instead of absolute — using './images/logo.png' instead of '/images/logo.png' breaks after deployment
  • Assets outside public folder — files placed in src/ or app/ directories are not served statically
  • Build output not including assets — .gitignore or .vercelignore excluding necessary static files
  • Base path not prepended — when using basePath in next.config.js, asset URLs need the prefix

How to Fix It

  1. Use absolute paths — reference all static assets with leading slash: /images/logo.png not ./images/logo.png
  2. Check case sensitivity — ensure filenames match exactly including capitalization: Logo.PNG vs logo.png
  3. Verify public folder structure — all static assets must be in the /public directory at the project root
  4. Check .gitignore — ensure static assets are not being excluded from version control and deployment
  5. Use next/font for fonts — replace public folder fonts with next/font/google or next/font/local for automatic optimization
  6. Test with production build — run next build && next start locally to catch asset issues before deploying

Real developers can help you.

Matthew Jordan Matthew Jordan I've been working at a large software company named Kainos for 2 years, and mainly specialise in Platform Engineering. I regularly enjoy working on software products outside of work, and I'm a huge fan of game development using Unity. I personally enjoy Python & C# in my spare time, but I also specialise in multiple different platform-related technologies from my day job. Krishna Sai Kuncha Krishna Sai Kuncha Experienced Professional Full stack Developer with 8+ years of experience across react, python, js, ts, golang and react-native. Developed inhouse websearch tooling for AI before websearch was solved : ) Costea Adrian Costea Adrian Embedded Engineer specilizing in perception systems. Latest project was a adas camera calibration system. Jen Jacobsen Jen Jacobsen I’m a Full-Stack Developer with over 10 years of experience building modern web and mobile applications. I enjoy working across the full product lifecycle — turning ideas into real, well-built products that are intuitive for users and scalable for businesses. I particularly enjoy building mobile apps, modern web platforms, and solving complex technical problems in a way that keeps systems clean, reliable, and easy to maintain. zipking zipking I am a technologist and product builder dedicated to creating high-impact solutions at the intersection of AI and specialized markets. Currently, I am focused on PropScan (EstateGuard), an AI-driven SaaS platform tailored for the Japanese real estate industry, and exploring the potential of Archify. As an INFJ-T, I approach development with a "systems-thinking" mindset—balancing technical precision with a deep understanding of user needs. I particularly enjoy the challenge of architecting Vertical AI SaaS and optimizing Small Language Models (SLMs) to solve specific, real-world business problems. Whether I'm in a CTO-level leadership role or hands-on with the code, I thrive on building tools that turn complex data into actionable value. David Olverson David Olverson Solo dev shipping production apps with AI-assisted development. I specialize in rescuing broken Lovable/Bolt/Cursor builds and taking them to production. 10+ apps shipped including SaaS CRMs, gaming platforms, real estate tools, and Discord bots. Stack: Next.js 16, TypeScript, Tailwind CSS, FastAPI, PostgreSQL, Prisma. I use Claude Code with 50+ custom skills for rapid delivery. Average turnaround: 2-4 weeks from broken prototype to production. Vlad Temian Vlad Temian 15+ years shipping production infrastructure for startups. Former CTO at qed.builders (acquired by The Sandbox). Cursor ambassador and agentic tooling builder. I've scaled systems, automated deployments, and built observability tools for AI coding workflows. I specialize in taking vibe-coded apps from broken prototype to production-ready: fixing Supabase auth/RLS, Stripe integrations, deployment pipelines, and cleaning up AI-generated spaghetti. I build tools in this space (agentprobe, claudebin, micode) and understand both sides: how AI generates code and why it breaks. https://blog.vtemian.com/ ISHANTDEEP SINGH ISHANTDEEP SINGH Senior Software Engineer with 7+ years of experience in React, JavaScript, TypeScript, Next.js, and Node.js. I’ve also worked as a tech lead for startups, owning end-to-end technical execution including architecture, development, scaling, and delivery. I bring a strong mix of hands-on coding, product thinking, and technical leadership, and I’m comfortable building products from scratch as well as improving and scaling existing systems. Meïr Ankri Meïr Ankri Full-stack developer specializing in React / Next.js / Node.js with 6+ years of experience. I've worked across various sectors including automotive (Reezocar/Société Générale), healthcare (Medical Link SaaS), and e-commerce (Glasman). I build web apps end-to-end, from architecture to production, with a focus on scalability, performance, and code quality. I also mentor junior developers and contribute to technical decisions and code reviews. Mehdi Ben Haddou Mehdi Ben Haddou - Founder of Chessigma (1M+ users) & many small projects - ex Founding Engineer @Uplane (YC F25) - ex Software Engineer @Amazon and @Booking.com

You don't need to be technical. Just describe what's wrong and a verified developer will handle the rest.

Get Help

Frequently Asked Questions

Why do my assets work locally but not on Vercel?

Most likely a case sensitivity issue. macOS and Windows filesystems are case-insensitive, but Vercel runs on Linux which is case-sensitive. Check that filenames match exactly.

Where should I put static files in Next.js?

Place them in the /public directory at your project root. They are served from the root URL: /public/logo.png is accessible at /logo.png.

How do I serve files from a subdirectory?

Create subdirectories inside /public. For example, /public/downloads/guide.pdf is accessible at /downloads/guide.pdf.

Related v0 Issues

Can't fix it yourself?
Real developers can help.

You don't need to be technical. Just describe what's wrong and a verified developer will handle the rest.

Get Help