Skip to content

Commit 82e77a8

Browse files
yhirano55timneutkens
authored andcommitted
Update ssr-caching example (vercel#4363)
* Remove unnecessary dir key from next's argument * Add license section to package.json
1 parent 8512bf4 commit 82e77a8

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

examples/ssr-caching/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,6 @@
1212
"next": "latest",
1313
"react": "^16.0.0",
1414
"react-dom": "^16.0.0"
15-
}
15+
},
16+
"license": "ISC"
1617
}

examples/ssr-caching/server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const LRUCache = require('lru-cache')
44

55
const port = parseInt(process.env.PORT, 10) || 3000
66
const dev = process.env.NODE_ENV !== 'production'
7-
const app = next({ dir: '.', dev })
7+
const app = next({ dev })
88
const handle = app.getRequestHandler()
99

1010
// This is where we cache our rendered HTML pages

0 commit comments

Comments
 (0)