Unverified Commit 6679694a authored by Tim Neutkens's avatar Tim Neutkens Committed by GitHub

Update Custom Server README's (#10843)

* update custom server readmes

* remove deploy buttons
parent 2d649867
...@@ -9,12 +9,6 @@ On initial page load, while on the server and inside `getInitialProps`, we invok ...@@ -9,12 +9,6 @@ On initial page load, while on the server and inside `getInitialProps`, we invok
Note: Do not be alarmed that you see two renders being executed. Apollo recursively traverses the React render tree looking for Apollo query components. When it has done that, it fetches all these queries and then passes the result to a cache. This cache is then used to render the data on the server side (another React render). Note: Do not be alarmed that you see two renders being executed. Apollo recursively traverses the React render tree looking for Apollo query components. When it has done that, it fetches all these queries and then passes the result to a cache. This cache is then used to render the data on the server side (another React render).
https://www.apollographql.com/docs/react/api/react-ssr/#getdatafromtree https://www.apollographql.com/docs/react/api/react-ssr/#getdatafromtree
## Deploy your own
Deploy the example using [ZEIT Now](https://zeit.co/now):
[![Deploy with ZEIT Now](https://zeit.co/button)](https://zeit.co/import/project?template=https://github.com/zeit/next.js/tree/canary/examples/api-routes-apollo-server-and-client-auth)
## How to use ## How to use
### Using `create-next-app` ### Using `create-next-app`
...@@ -47,5 +41,3 @@ yarn dev ...@@ -47,5 +41,3 @@ yarn dev
``` ```
> If you have issues installing `bcrypt`, follow this instructions: https://github.com/kelektiv/node.bcrypt.js/wiki/Installation-Instructions > If you have issues installing `bcrypt`, follow this instructions: https://github.com/kelektiv/node.bcrypt.js/wiki/Installation-Instructions
Deploy it to the cloud with [ZEIT Now](https://zeit.co/import?filter=next.js&utm_source=github&utm_medium=readme&utm_campaign=next-example) ([Documentation](https://nextjs.org/docs/deployment)).
...@@ -9,12 +9,6 @@ On initial page load, while on the server and inside `getInitialProps`, we invok ...@@ -9,12 +9,6 @@ On initial page load, while on the server and inside `getInitialProps`, we invok
Note: Do not be alarmed that you see two renders being executed. Apollo recursively traverses the React render tree looking for Apollo query components. When it has done that, it fetches all these queries and then passes the result to a cache. This cache is then used to render the data on the server side (another React render). Note: Do not be alarmed that you see two renders being executed. Apollo recursively traverses the React render tree looking for Apollo query components. When it has done that, it fetches all these queries and then passes the result to a cache. This cache is then used to render the data on the server side (another React render).
https://www.apollographql.com/docs/react/api/react-ssr/#getdatafromtree https://www.apollographql.com/docs/react/api/react-ssr/#getdatafromtree
## Deploy your own
Deploy the example using [ZEIT Now](https://zeit.co/now):
[![Deploy with ZEIT Now](https://zeit.co/button)](https://zeit.co/import/project?template=https://github.com/zeit/next.js/tree/canary/examples/api-routes-apollo-server-and-client)
## How to use ## How to use
### Using `create-next-app` ### Using `create-next-app`
...@@ -45,5 +39,3 @@ npm run dev ...@@ -45,5 +39,3 @@ npm run dev
yarn yarn
yarn dev yarn dev
``` ```
Deploy it to the cloud with [ZEIT Now](https://zeit.co/import?filter=next.js&utm_source=github&utm_medium=readme&utm_campaign=next-example) ([Documentation](https://nextjs.org/docs/deployment)).
...@@ -36,5 +36,3 @@ npm run dev ...@@ -36,5 +36,3 @@ npm run dev
yarn yarn
yarn dev yarn dev
``` ```
Deploy it to the cloud with [ZEIT Now](https://zeit.co/import?filter=next.js&utm_source=github&utm_medium=readme&utm_campaign=next-example) ([Documentation](https://nextjs.org/docs/deployment)).
...@@ -36,6 +36,3 @@ npm run dev ...@@ -36,6 +36,3 @@ npm run dev
yarn yarn
yarn dev yarn dev
``` ```
Fastify
Deploy it to the cloud with [ZEIT Now](https://zeit.co/import?filter=next.js&utm_source=github&utm_medium=readme&utm_campaign=next-example) ([Documentation](https://nextjs.org/docs/deployment)).
...@@ -36,5 +36,3 @@ npm run dev ...@@ -36,5 +36,3 @@ npm run dev
yarn yarn
yarn dev yarn dev
``` ```
Deploy it to the cloud with [ZEIT Now](https://zeit.co/import?filter=next.js&utm_source=github&utm_medium=readme&utm_campaign=next-example) ([Documentation](https://nextjs.org/docs/deployment)).
...@@ -37,8 +37,6 @@ yarn ...@@ -37,8 +37,6 @@ yarn
yarn dev yarn dev
``` ```
Deploy it to the cloud with [ZEIT Now](https://zeit.co/import?filter=next.js&utm_source=github&utm_medium=readme&utm_campaign=next-example) ([Documentation](https://nextjs.org/docs/deployment)).
## Side note: Enabling gzip compression ## Side note: Enabling gzip compression
The most common Koa middleware for handling the gzip compression is [compress](https://github.com/koajs/compress), but unfortunately it is currently not compatible with Next.<br> The most common Koa middleware for handling the gzip compression is [compress](https://github.com/koajs/compress), but unfortunately it is currently not compatible with Next.<br>
......
...@@ -36,5 +36,3 @@ npm run dev ...@@ -36,5 +36,3 @@ npm run dev
yarn yarn
yarn dev yarn dev
``` ```
Deploy it to the cloud with [ZEIT Now](https://zeit.co/import?filter=next.js&utm_source=github&utm_medium=readme&utm_campaign=next-example) ([Documentation](https://nextjs.org/docs/deployment)).
...@@ -32,5 +32,3 @@ npm run dev ...@@ -32,5 +32,3 @@ npm run dev
yarn yarn
yarn dev yarn dev
``` ```
Deploy it to the cloud with [ZEIT Now](https://zeit.co/import?filter=next.js&utm_source=github&utm_medium=readme&utm_campaign=next-example) ([Documentation](https://nextjs.org/docs/deployment)).
...@@ -36,5 +36,3 @@ npm run dev ...@@ -36,5 +36,3 @@ npm run dev
yarn yarn
yarn dev yarn dev
``` ```
Deploy it to the cloud with [ZEIT Now](https://zeit.co/import?filter=next.js&utm_source=github&utm_medium=readme&utm_campaign=next-example) ([Documentation](https://nextjs.org/docs/deployment)).
...@@ -56,7 +56,3 @@ npm start ...@@ -56,7 +56,3 @@ npm start
# or # or
yarn start yarn start
``` ```
### Deploy the app
Deploy it to the cloud with [ZEIT Now](https://zeit.co/import?filter=next.js&utm_source=github&utm_medium=readme&utm_campaign=next-example) ([Documentation](https://nextjs.org/docs/deployment)).
...@@ -35,5 +35,3 @@ npm run dev ...@@ -35,5 +35,3 @@ npm run dev
yarn yarn
yarn dev yarn dev
``` ```
Deploy it to the cloud with [ZEIT Now](https://zeit.co/import?filter=next.js&utm_source=github&utm_medium=readme&utm_campaign=next-example) ([Documentation](https://nextjs.org/docs/deployment)).
...@@ -34,5 +34,3 @@ npm run dev ...@@ -34,5 +34,3 @@ npm run dev
yarn yarn
yarn dev yarn dev
``` ```
Deploy it to the cloud with [ZEIT Now](https://zeit.co/import?filter=next.js&utm_source=github&utm_medium=readme&utm_campaign=next-example) ([Documentation](https://nextjs.org/docs/deployment)).
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