Skip to content

Commit f29e658

Browse files
committed
docs: add maxAge for ssr
1 parent 623e9c4 commit f29e658

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

docs/ssr.md

+1
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ You can configure it in a special config file, or `package.json`.
9494
```js
9595
module.exports = {
9696
template: './ssr.html',
97+
maxAge: 60 * 60 * 1000, // lru-cache config
9798
config: {
9899
// docsify config
99100
}

src/core/render/compiler.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export class Compiler {
6161
}
6262

6363
matchNotCompileLink (link) {
64-
const links = this.config.noCompileLinks
64+
const links = this.config.noCompileLinks || []
6565

6666
for (var i = 0; i < links.length; i++) {
6767
const n = links[i]

0 commit comments

Comments
 (0)