Self-hosted instance returning Page Not Found
for all badges
#9521
-
👋🏽 We've set up a self-hosted instance of Shields on Vercel, however, all badges are returning We've stood it up locally and it works fine, so unsure as to where the differences might be. Thanks!
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I've never tried running it on vercel, so I can't really guide you through this too much, but my guess is you're telling vercel to build the frontend and run that as a static site, but you are never starting the badge server. That would be why you've got a working "website" bit of the app but its not serving any actual images. I'm not really sure what steps you'd take on Vercel but basically you want to build the frontend with |
Beta Was this translation helpful? Give feedback.
-
Ah of course, Vercel is only for static deployments not running servers isn't it 🙃. Thanks for the speedy reply @chris48s, will have to consider a different environment. |
Beta Was this translation helpful? Give feedback.
I've never tried running it on vercel, so I can't really guide you through this too much, but my guess is you're telling vercel to build the frontend and run that as a static site, but you are never starting the badge server. That would be why you've got a working "website" bit of the app but its not serving any actual images. I'm not really sure what steps you'd take on Vercel but basically you want to build the frontend with
npm run build
but then start the badge server (which can serve the built frontend as well as the badges) using eithernode server
ornpm run start:server:prod