Logo, Icon Paths, and Static Assets Not Appearing in Vercel

Dear Vercel Support Team,

I’m encountering issues with deploying my changes, specifically with the logo and icon assets, which are not appearing in the deployed version.

Issues Encountered:

  1. Logo and Icon Path Issues:
  • The logo and icons are correctly referenced in the code, and the paths I used are:
    • /logo.svg (for the logo)
    • /icons/icon.svg (for the app icon)
    • /icons/icon-transparent.svg (for the transparent app icon)
  • These assets are present in the /public directory of my Git repository, but they are not appearing in the deployed version on Vercel.
  1. Deployment Error:
  • After updating the paths in my layout.tsx file, I attempted to deploy the changes, but I’m receiving the following error message:
    "Something went wrong. Please edit, retry, or delete your message."
  • This error indicates there may be an issue with the deployment process or the static file handling, preventing the assets from being correctly deployed and served.

Steps Taken:

  1. I’ve placed the files in the correct location in the Git repository’s /public directory:
  • /public/logo.svg
  • /public/icons/icon.svg
  • /public/icons/icon-transparent.svg
  1. I have committed these changes to Git, but the files are still not being served correctly in the Vercel deployment.

Request:

Could you please assist with the following:

  1. Verify Static Assets Deployment: Ensure that the logo and icon files in the /public directory of the Git repository are being correctly deployed to Vercel. It seems they are not being included in the Vercel deployment.
  2. Check Deployment Configuration: Investigate the Vercel build and deployment configuration to confirm that static assets are being handled and served properly.
  3. Review Build Logs: Please check the build logs for any errors or issues related to static assets, file serving, or deployment.

Thank you for your support. I appreciate your assistance in resolving this and getting the deployment working correctly.

Best regards,

The requests for your assets are being handled by Next.js instead of serving the static files

Do you have any middleware or vercel.json#rewrites that could be matching those paths? Or a catch all route at the top level of your app folder?

I am not seeing catch all routes, there are no rewrites either. I have a /test-assets.html page that shows the files are not being served correctly.