Skip to content

Commit

Permalink
Merge branch 'canary' into redirect-getserverside-props-with-rewrites
Browse files Browse the repository at this point in the history
  • Loading branch information
antoinechalifour committed Jun 10, 2021
2 parents 12fb755 + 2cff809 commit 80f1638
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
8 changes: 8 additions & 0 deletions docs/advanced-features/codemods.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,14 @@ Codemods are transformations that run on your codebase programmatically. This al
- `--dry` Do a dry-run, no code will be edited
- `--print` Prints the changed output for comparison

## Next.js 11

### `cra-to-next` (experimental)

Migrates a Create React App project to Next.js; creating a pages directory and necessary config to match behavior. Client-side only rendering is leveraged initially to prevent breaking compatibility due to `window` usage during SSR and can be enabled seamlessly to allow gradual adoption of Next.js specific features.

Please share any feedback related to this transform [in this discussion](https://github.com/vercel/next.js/discussions/25858).

## Next.js 10

### `add-missing-react-import`
Expand Down
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 80f1638

Please sign in to comment.