You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/next/README.md
+3-17Lines changed: 3 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1761,23 +1761,7 @@ next build
1761
1761
next start
1762
1762
```
1763
1763
1764
-
For example, to deploy with [`now`](https://zeit.co/now) a `package.json` like follows is recommended:
1765
-
1766
-
```json
1767
-
{
1768
-
"name":"my-app",
1769
-
"dependencies": {
1770
-
"next":"latest"
1771
-
},
1772
-
"scripts": {
1773
-
"dev":"next",
1774
-
"build":"next build",
1775
-
"start":"next start"
1776
-
}
1777
-
}
1778
-
```
1779
-
1780
-
Then run `now` and enjoy!
1764
+
To deploy Next.js with [ZEIT Now](https://zeit.co/now) see the [ZEIT Guide for Deploying Next.js with Now](https://zeit.co/guides/deploying-nextjs-with-now/).
1781
1765
1782
1766
Next.js can be deployed to other hosting solutions too. Please have a look at the ['Deployment'](https://github.com/zeit/next.js/wiki/Deployment) section of the wiki.
1783
1767
@@ -1824,6 +1808,8 @@ export function render(req: http.IncomingMessage, res: http.ServerResponse) => v
- `void` refers to the function not having a return value and is equivalent to JavaScript's `undefined`. Calling the function will finish the request.
1826
1810
1811
+
Using the serverless target, you can deploy Next.js to [ZEIT Now](https://zeit.co/now) with all of the benefits and added ease of control like for example; [custom routes](https://zeit.co/guides/custom-next-js-server-to-routes/) and caching headers. See the [ZEIT Guide for Deploying Next.js with Now](https://zeit.co/guides/deploying-nextjs-with-now/) for more information.
1812
+
1827
1813
#### One Level Lower
1828
1814
1829
1815
Next.js provides low-level APIs for serverless deployments as hosting platforms have different function signatures. In general you will want to wrap the output of a Next.js serverless build with a compatability layer.
0 commit comments