From c228425777a350b0e98ef86c9eb6b4ac161b3c0f Mon Sep 17 00:00:00 2001 From: Jovi De Croock Date: Mon, 13 Jan 2025 18:47:47 +0100 Subject: [PATCH 1/2] Fix swapi url --- next.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/next.config.js b/next.config.js index ba2d0f768c..06338f52c7 100644 --- a/next.config.js +++ b/next.config.js @@ -73,7 +73,7 @@ export default withLess( return [ { source: "/swapi-graphql/:path*", - destination: "https://graphql.github.io/swapi-graphql/:path*", + destination: "https://swapi-graphql.netlify.app/:path*", }, ] }, From 230b4561350a24aac58dd433dfb9aa59b240ed75 Mon Sep 17 00:00:00 2001 From: Jovi De Croock Date: Mon, 13 Jan 2025 19:00:13 +0100 Subject: [PATCH 2/2] Add endpoint --- next.config.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/next.config.js b/next.config.js index 06338f52c7..e6a84b9dd9 100644 --- a/next.config.js +++ b/next.config.js @@ -75,6 +75,10 @@ export default withLess( source: "/swapi-graphql/:path*", destination: "https://swapi-graphql.netlify.app/:path*", }, + { + source: "/graphql", + destination: "https://swapi-graphql.netlify.app/graphql", + }, ] }, }),