Skip to content

Commit b52ece7

Browse files
authored
Restore /swapi-graphql endpoint via reverse proxy (graphql#1502)
1 parent 4480aae commit b52ece7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Diff for: gatsby-node.ts

+7
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)