Commit 82e77a88 authored by yhirano55's avatar yhirano55 Committed by Tim Neutkens

Update ssr-caching example (#4363)

* Remove unnecessary dir key from next's argument
* Add license section to package.json
parent 8512bf49
...@@ -12,5 +12,6 @@ ...@@ -12,5 +12,6 @@
"next": "latest", "next": "latest",
"react": "^16.0.0", "react": "^16.0.0",
"react-dom": "^16.0.0" "react-dom": "^16.0.0"
} },
"license": "ISC"
} }
...@@ -4,7 +4,7 @@ const LRUCache = require('lru-cache') ...@@ -4,7 +4,7 @@ const LRUCache = require('lru-cache')
const port = parseInt(process.env.PORT, 10) || 3000 const port = parseInt(process.env.PORT, 10) || 3000
const dev = process.env.NODE_ENV !== 'production' const dev = process.env.NODE_ENV !== 'production'
const app = next({ dir: '.', dev }) const app = next({ dev })
const handle = app.getRequestHandler() const handle = app.getRequestHandler()
// This is where we cache our rendered HTML pages // This is where we cache our rendered HTML pages
......
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