mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
Fix SSR Cache Example (#510)
This commit is contained in:
parent
e81852c742
commit
355dbf8fdd
|
@ -14,7 +14,7 @@ Install it and run:
|
|||
|
||||
```bash
|
||||
npm install
|
||||
npm run dev
|
||||
npm start
|
||||
```
|
||||
|
||||
Deploy it to the cloud with [now](https://zeit.co/now) ([download](https://zeit.co/download))
|
||||
|
|
|
@ -21,7 +21,7 @@ app.prepare()
|
|||
})
|
||||
|
||||
server.get('/blog/:id', (req, res) => {
|
||||
const queryParams = { id: req.paradms.id }
|
||||
const queryParams = { id: req.params.id }
|
||||
renderAndCache(req, res, '/blog', queryParams)
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in a new issue