We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46f8791 commit 996266eCopy full SHA for 996266e
server.js
@@ -16,10 +16,13 @@ const app = express()
16
function createRenderer (bundle, options) {
17
// https://github.com/vuejs/vue/blob/dev/packages/vue-server-renderer/README.md#why-use-bundlerenderer
18
return createBundleRenderer(bundle, Object.assign(options, {
19
+ // for component caching
20
cache: require('lru-cache')({
21
max: 1000,
22
maxAge: 1000 * 60 * 15
- })
23
+ }),
24
+ // this is only needed when vue-server-renderer is npm-linked
25
+ basedir: resolve('./dist'),
26
}))
27
}
28
0 commit comments