Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Images in /public not served on Vercel #18

Open
bennash opened this issue Dec 1, 2024 · 1 comment
Open

Images in /public not served on Vercel #18

bennash opened this issue Dec 1, 2024 · 1 comment

Comments

@bennash
Copy link

bennash commented Dec 1, 2024

I'm not getting vercel to show the images in the /public directory. Is there some config to set? thanks

@corwinm
Copy link

corwinm commented Dec 31, 2024

@bennash I was able to update my vercel/output/config.json and get images to load. I'm not sure if this is the best way to do this or if there is a downside but it got me past this issue.

{
  "version": 3,
  "routes": [
    {
      "src": "/favicon.ico",
      "dest": "/favicon.ico"
    },
    {
-      "src": "/assets/(.*)",
-      "dest": "/assets/$1"
+      "src": "/(.*)",
+      "dest": "/$1"
    },
    {
      "src": "/(.*)",
      "dest": "/"
    }
  ]
}

trogers1 added a commit to trogers1/taylorrogers.com that referenced this issue Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants