Skip to content

Commit

Permalink
(examples/with-urql): fixes graphql server url (#25987)
Browse files Browse the repository at this point in the history
## Documentation / Examples

- [x] Make sure the linting passes

As mentioned in #25854 `with-urql` doesn't work. After investigation, I've found that Pokémon GraphQL server located at `https://graphql-pokemon.vercel.app` is down.
After some research I came across its repository and this [pull request](lucasbento/graphql-pokemon#14). That pull request provides new URL `https://graphql-pokemon2.vercel.app` which seems to work.

I don't know the status of this server, maybe @leerob can confirm this PR is ok.
  • Loading branch information
vitalybaev authored Jun 10, 2021
1 parent d72225e commit e867fe0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions examples/with-urql/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

Use [urql](https://github.com/FormidableLabs/urql) with Next.js using SSG.

## Preview

Preview the example live on [StackBlitz](http://stackblitz.com/):

[![Open in StackBlitz](https://developer.stackblitz.com/img/open_in_stackblitz.svg)](https://stackblitz.com/github/vercel/next.js/tree/canary/examples/with-urql)

## Deploy your own

Deploy the example using [Vercel](https://vercel.com?utm_source=github&utm_medium=readme&utm_campaign=next-example):
Expand Down
2 changes: 1 addition & 1 deletion examples/with-urql/graphql/client.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { createClient } from 'urql'

export const client = createClient({
url: 'https://graphql-pokemon.vercel.app/',
url: 'https://graphql-pokemon2.vercel.app/',
})

0 comments on commit e867fe0

Please sign in to comment.