Skip to content

Commit

Permalink
Merge pull request #4 from dremendes/fix/change-server-and-data
Browse files Browse the repository at this point in the history
Original SpaceX GraphQL API is down[¹][²].
Replaced by another one [³] and changed data models accordingly. Also sorted data so ones with image appears first

[1] - SpaceXLand/api#241
[2] - r-spacex/SpaceX-API#1243
[3] - https://studio.apollographql.com/public/SpaceX-pxxbxen/home?variant=current
  • Loading branch information
dremendes committed Feb 15, 2023
2 parents 8860a4f + 11f9271 commit 6e90b95
Show file tree
Hide file tree
Showing 4 changed files with 4,534 additions and 21 deletions.
4 changes: 3 additions & 1 deletion apollo-client.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import { ApolloClient, InMemoryCache } from "@apollo/client";

const API_URL = 'https://api.spacex.land/graphql/';
const API_URL = 'https://spacex-production.up.railway.app/';

const client = new ApolloClient({
uri: API_URL,
cache: new InMemoryCache(),
});

console.log(client);

export default client;
Loading

1 comment on commit 6e90b95

@vercel
Copy link

@vercel vercel bot commented on 6e90b95 Feb 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.