diff --git a/rewrites-redirects.json b/rewrites-redirects.json index 46876bb06..b99e93bc1 100644 --- a/rewrites-redirects.json +++ b/rewrites-redirects.json @@ -111,6 +111,10 @@ { "source": "/developers/guides/getstarted/setup-local-development", "destination": "/docs/intro/installation" + }, + { + "source": "/environment", + "destination": "https://climate.solana.com/" } ] } diff --git a/src/lib/markdown/index.js b/src/lib/markdown/index.js index 2d215f4d8..5f8ff60ab 100644 --- a/src/lib/markdown/index.js +++ b/src/lib/markdown/index.js @@ -21,7 +21,7 @@ export function getPostBySlug(path, slug) { const date = data.date && typeof data.date !== "string" ? format(data.date, "MMMM dd, yyyy") - : (data.date ?? null); + : data.date ?? null; return { path: realSlug, frontmatter: { ...data, date, reviewed: true },