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
{{ message }}
This repository was archived by the owner on May 10, 2021. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+8-12
Original file line number
Diff line number
Diff line change
@@ -75,13 +75,13 @@ I recommend you still use `next dev` to build and preview your application local
75
75
76
76
But if you want to emulate the Netlify deployment on your computer, you can also run `next-on-netlify` locally and then use `netlify-cli` to preview the result.
77
77
78
-
To do that, first install `http-server` and `netlify-cli`:
79
-
```
80
-
npm install --save-dev http-server
78
+
First, install `netlify-cli` v2.51.0 or later:
79
+
80
+
```bash
81
81
npm install -g netlify-cli
82
82
```
83
83
84
-
Then add the following `[dev]` block to your `netlify.toml`:
84
+
Then, add the following `[dev]` block to your `netlify.toml`:
85
85
86
86
```toml
87
87
# netlify.toml
@@ -90,10 +90,6 @@ Then add the following `[dev]` block to your `netlify.toml`:
90
90
# ...
91
91
92
92
[dev]
93
-
# We use HTTP server without directory listings (-d false),
94
-
# without caching (-c-1), and without log output (--silent).
95
-
# More info: https://www.npmjs.com/package/http-server
0 commit comments