Skip to content

Commit 3eea290

Browse files
authored
fix(examples): Update nextjs-graphql-with-prisma-simple example API endpoint (vercel#32759)
Updates the API endpoint to one that exists, to be merged if we can not recover the original hostname. Internal discussion: https://prisma-company.slack.com/archives/CBP68USAX/p1640215250109600
1 parent dbe7f96 commit 3eea290

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

examples/with-apollo-and-redux/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This example serves as a conduit if you were using Apollo 1.X with Redux, and ar
44

55
In 3.0.0, Apollo serves out-of-the-box support for redux in favor of Apollo's state management. This example aims to be an amalgamation of the [`with-apollo`](https://github.com/vercel/next.js/tree/master/examples/with-apollo) and [`with-redux`](https://github.com/vercel/next.js/tree/master/examples/with-redux) examples.
66

7-
To inspect the GraphQL API, use its [web IDE](https://nextjs-graphql-with-prisma-simple.vercel.app/api).
7+
To inspect the GraphQL API, use its [web IDE](https://nextjs-graphql-with-prisma-simple-foo.vercel.app/api).
88

99
## Deploy your own
1010

examples/with-apollo-and-redux/lib/apollo.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ function createApolloClient() {
1010
return new ApolloClient({
1111
ssrMode: typeof window === 'undefined',
1212
link: new HttpLink({
13-
uri: 'https://nextjs-graphql-with-prisma-simple.vercel.app/api', // Server URL (must be absolute)
13+
uri: 'https://nextjs-graphql-with-prisma-simple-foo.vercel.app/api', // Server URL (must be absolute)
1414
credentials: 'same-origin', // Additional fetch() options like `credentials` or `headers`
1515
}),
1616
cache: new InMemoryCache({

examples/with-apollo/lib/apolloClient.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ function createApolloClient() {
1212
return new ApolloClient({
1313
ssrMode: typeof window === 'undefined',
1414
link: new HttpLink({
15-
uri: 'https://nextjs-graphql-with-prisma-simple.vercel.app/api', // Server URL (must be absolute)
15+
uri: 'https://nextjs-graphql-with-prisma-simple-foo.vercel.app/api', // Server URL (must be absolute)
1616
credentials: 'same-origin', // Additional fetch() options like `credentials` or `headers`
1717
}),
1818
cache: new InMemoryCache({

examples/with-graphql-hooks/lib/graphql-client.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ let graphQLClient
77
function createClient(initialState) {
88
return new GraphQLClient({
99
ssrMode: typeof window === 'undefined',
10-
url: 'https://nextjs-graphql-with-prisma-simple.vercel.app/api', // Server URL (must be absolute)
10+
url: 'https://nextjs-graphql-with-prisma-simple-foo.vercel.app/api', // Server URL (must be absolute)
1111
cache: memCache({ initialState }),
1212
})
1313
}

0 commit comments

Comments
 (0)