From fa0b01b63a875ff9e37852e9d72291717ac34b00 Mon Sep 17 00:00:00 2001 From: Catalin Rosu Date: Wed, 11 Sep 2024 18:56:37 +0300 Subject: [PATCH] Temp redirect, format:all --- rewrites-redirects.json | 4 ++++ src/lib/markdown/index.js | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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 },