Commit 355dbf8f authored by Ian Mitchell's avatar Ian Mitchell Committed by Arunoda Susiripala

Fix SSR Cache Example (#510)

parent e81852c7
...@@ -14,7 +14,7 @@ Install it and run: ...@@ -14,7 +14,7 @@ Install it and run:
```bash ```bash
npm install npm install
npm run dev npm start
``` ```
Deploy it to the cloud with [now](https://zeit.co/now) ([download](https://zeit.co/download)) Deploy it to the cloud with [now](https://zeit.co/now) ([download](https://zeit.co/download))
......
...@@ -21,7 +21,7 @@ app.prepare() ...@@ -21,7 +21,7 @@ app.prepare()
}) })
server.get('/blog/:id', (req, res) => { server.get('/blog/:id', (req, res) => {
const queryParams = { id: req.paradms.id } const queryParams = { id: req.params.id }
renderAndCache(req, res, '/blog', queryParams) renderAndCache(req, res, '/blog', queryParams)
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment