fix(template): repair broken Discord badge in the default project template - #403
Conversation
dcbadge.vercel.app returns 404 and no longer serves badges, so every project scaffolded from templates/default started with a broken Discord badge. The service moved to dcbadge.limes.pink, which keeps the same API path and query parameters, so this is a host-only swap and the badge renders unchanged.
|
This PR targeted I retargeted it to |
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Problem
The Discord badge points at
dcbadge.vercel.app, which no longer serves badges — the request returns HTTP 404, so the badge renders as a broken image:The project moved to
dcbadge.limes.pink, which keeps the exact same API path and query parameters:(The old host answers 404 to any user agent; the new host returns 200 — it does reject some non-browser agents with 403, which is why a naive checker can miss it.)
Fix
Swap the host, nothing else — same path, same query string, so the badge renders exactly as before:
The Discord invite link itself is untouched.
Why this one matters a bit more
This README lives in
templates/default/, so it is scaffolded into every new project created with the CLI. Right now each generated project ships with a broken Discord badge in its README from the first commit.Note (not changed here)
The same template block also carries a star-chart badge pointing at
yeagerai/genlayer-project-boilerplate/star-history.com/#yeagerai/genlayer-js, which is both the old org and a different repository. I left it alone since it's arguably a separate question for a scaffolded template (a generated project probably shouldn't advertise the boilerplate's stars at all) — happy to fix or drop it in a follow-up if you have a preference.Docs-only, one line.