1
0
Fork 0
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:
Ian Mitchell 2016-12-24 11:08:35 -08:00 committed by Arunoda Susiripala
parent e81852c742
commit 355dbf8fdd
2 changed files with 2 additions and 2 deletions

View file

@ -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))

View file

@ -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)
})