Unverified Commit e867fe05 authored by Vitaly Baev's avatar Vitaly Baev Committed by GitHub

(examples/with-urql): fixes graphql server url (#25987)

## 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](https://github.com/lucasbento/graphql-pokemon/pull/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.
parent d72225ee
...@@ -2,6 +2,12 @@ ...@@ -2,6 +2,12 @@
Use [urql](https://github.com/FormidableLabs/urql) with Next.js using SSG. 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 your own
Deploy the example using [Vercel](https://vercel.com?utm_source=github&utm_medium=readme&utm_campaign=next-example): Deploy the example using [Vercel](https://vercel.com?utm_source=github&utm_medium=readme&utm_campaign=next-example):
......
import { createClient } from 'urql' import { createClient } from 'urql'
export const client = createClient({ export const client = createClient({
url: 'https://graphql-pokemon.vercel.app/', url: 'https://graphql-pokemon2.vercel.app/',
}) })
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment