From 5c6d26fe36c8a4fe0db8218b2294499c581ffe8e Mon Sep 17 00:00:00 2001 From: Rikki Schulte Date: Fri, 21 Jul 2023 14:16:19 +0200 Subject: [PATCH] restore swapi 200 rewrite --- gatsby-node.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gatsby-node.ts b/gatsby-node.ts index 1740fd31a1..0833710e4c 100644 --- a/gatsby-node.ts +++ b/gatsby-node.ts @@ -121,6 +121,13 @@ export const createPages: GatsbyNode["createPages"] = async ({ toPath: "/conf/schedule", }) + // redirect swapi with 200 + createRedirect({ + fromPath: `/swapi-graphql/*`, + toPath: `https://graphql.github.io/swapi-graphql/*`, + statusCode: 200, + }) + const result = await graphql(` query allMarkdownRemark { allMarkdownRemark {