From 0ebe589ea63c71d7ab8c1d2090bb741107b7bfcf Mon Sep 17 00:00:00 2001 From: dewanshparashar Date: Fri, 21 Aug 2026 16:07:05 +0530 Subject: [PATCH] redirect /blog to the website blog The docs blog duplicates www.zerodev.app/blog. Post slugs differ between the two, so all /blog paths 301 to the blog index. --- server.mjs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/server.mjs b/server.mjs index 94705e95..e6294327 100644 --- a/server.mjs +++ b/server.mjs @@ -14,8 +14,11 @@ const PORT = Number(process.env.PORT) || 10000; const DIR = join(fileURLToPath(new URL(".", import.meta.url)), "docs", "dist"); const EXACT = new Map(redirects.map((r) => [r.from, r.to])); -const PREFIX = [["/magic-account", "/smart-accounts/chain-abstraction/overview"]]; -const SPA_FALLBACK = ["/sdk", "/meta-infra", "/recovery-flow", "/blog", "/react", "/smart-wallet"]; +const PREFIX = [ + ["/magic-account", "/smart-accounts/chain-abstraction/overview"], + ["/blog", "https://www.zerodev.app/blog"], +]; +const SPA_FALLBACK = ["/sdk", "/meta-infra", "/recovery-flow", "/react", "/smart-wallet"]; const assets = sirv(DIR, { etag: true,