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: README.md
+15-3Lines changed: 15 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -75,19 +75,31 @@ 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 `serve` and `netlify-cli`:
78
+
To do that, first install `http-server` and `netlify-cli`:
79
79
```
80
-
npm install --save-dev serve
80
+
npm install --save-dev http-server
81
81
npm install -g netlify-cli
82
82
```
83
83
84
84
Then add the following `[dev]` block to your `netlify.toml`:
85
85
86
86
```toml
87
+
# netlify.toml
88
+
89
+
# [build]
90
+
# ...
91
+
87
92
[dev]
88
-
command = "serve public -p 3000"
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