10000 readme: fix the instruction of running next · JavaScriptExpert/next.js@d9ea4ce · GitHub
[go: up one dir, main page]

Skip to content

Commit d9ea4ce

Browse files
committed
readme: fix the instruction of running next
1 parent 3d44b58 commit d9ea4ce

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

README.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,16 @@ Install it:
1010
$ npm install next --save
1111
```
1212

13+
and add a script to your package.json like this:
14+
15+
```json
16+
{
17+
"scripts": {
18+
"start": "next"
19+
}
20+
}
21+
```
22+
1323
After that, the file-system is the main API. Every `.js` file becomes a route that gets automatically processed and rendered.
1424

1525
Populate `./pages/index.js` inside your project:
@@ -21,7 +31,7 @@ export default () => (
2131
)
2232
```
2333

24-
and then just run `next` and go to `http://localhost:3000`
34+
and then just run `npm start` and go to `http://localhost:3000`
2535

2636
So far, we get:
2737

0 commit comments

Comments
 (0)
0