Skip to content

Commit bc41081

Browse files
SebTardifsteipete
andauthored
fix(config): move /discord redirect from Netlify _redirects to vercel.json (#147)
* fix(config): move /discord redirect from Netlify _redirects to vercel.json The site deploys on Vercel but public/_redirects uses Netlify syntax. Vercel ignores this file, so /discord returns 404 instead of redirecting to the Discord invite link. Move the redirect to vercel.json using the Vercel redirects config and remove the stale _redirects file. Signed-off-by: Sebastien Tardif <sebtardif@ncf.ca> * retrigger proof review * retrigger proof check * fix(config): scope /discord redirect to openclaw.ai host Add has condition to restrict the redirect to openclaw.ai only, matching the existing host-scoped routing pattern in vercel.json. Without this, /discord would redirect on all configured hosts including trust.openclaw.ai and clawd.bot. Signed-off-by: Sebastien Tardif <sebtardif@ncf.ca> * fix(config): use routes for discord redirect * docs(changelog): note discord redirect fix --------- Signed-off-by: Sebastien Tardif <sebtardif@ncf.ca> Co-authored-by: Peter Steinberger <steipete@gmail.com>
1 parent 44b6844 commit bc41081

3 files changed

Lines changed: 7 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## Unreleased
44

55
- Ecosystem: promote clawpdf into the TypeScript libraries section with its canonical site link.
6+
- Website: move the Discord shortcut into Vercel routing so `/discord` redirects correctly (#147, thanks @SebTardif).
67
- Ecosystem: tune project card banner art visibility.
78
- Ecosystem: quiet the final contribution CTA button colors.
89
- Ecosystem: add a visual project directory with generated banners, real project logos, canonical site links, and local static assets.

public/_redirects

Lines changed: 0 additions & 1 deletion
This file was deleted.

vercel.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
{
22
"routes": [
3+
{
4+
"src": "^/discord/?$",
5+
"has": [{ "type": "host", "value": "openclaw.ai" }],
6+
"status": 302,
7+
"headers": { "Location": "https://discord.gg/clawd" }
8+
},
39
{
410
"src": "^/blog/performance-size-supply-chain-sweep/?$",
511
"status": 308,

0 commit comments

Comments
 (0)