1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00

Update README.md

This commit is contained in:
Guillermo Rauch 2016-12-20 11:26:59 -08:00 committed by GitHub
parent 905d671719
commit 2a1cda283b

View file

@ -307,6 +307,13 @@ app.prepare().then(() => {
})
```
The `next` API is as follows:
- `next(path: string, opts: objecvt)` - `path` is where the Next project is located
- `next(opts: object)`
Supported options:
- `dev` (`bool`) whether to launch Next.js in dev mode
### Custom `<Document>`
Pages in `Next.js` skip the definition of the surrounding document's markup. For example, you never include `<html>`, `<body>`, etc. But we still make it possible to override that: