Skip to content

Commit 5c6d26f

Browse files
committed
restore swapi 200 rewrite
1 parent 4480aae commit 5c6d26f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

gatsby-node.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,13 @@ export const createPages: GatsbyNode["createPages"] = async ({
121121
toPath: "/conf/schedule",
122122
})
123123

124+
// redirect swapi with 200
125+
createRedirect({
126+
fromPath: `/swapi-graphql/*`,
127+
toPath: `https://graphql.github.io/swapi-graphql/*`,
128+
statusCode: 200,
129+
})
130+
124131
const result = await graphql(`
125132
query allMarkdownRemark {
126133
allMarkdownRemark {

0 commit comments

Comments
 (0)