mirror of
https://github.com/docsifyjs/docsify.git
synced 2025-12-08 19:55:52 +00:00
docs: add maxAge for ssr
This commit is contained in:
parent
3a72074405
commit
7c8d1cee76
@ -94,6 +94,7 @@ You can configure it in a special config file, or `package.json`.
|
|||||||
```js
|
```js
|
||||||
module.exports = {
|
module.exports = {
|
||||||
template: './ssr.html',
|
template: './ssr.html',
|
||||||
|
maxAge: 60 * 60 * 1000, // lru-cache config
|
||||||
config: {
|
config: {
|
||||||
// docsify config
|
// docsify config
|
||||||
}
|
}
|
||||||
|
|||||||
@ -61,7 +61,7 @@ export class Compiler {
|
|||||||
}
|
}
|
||||||
|
|
||||||
matchNotCompileLink (link) {
|
matchNotCompileLink (link) {
|
||||||
const links = this.config.noCompileLinks
|
const links = this.config.noCompileLinks || []
|
||||||
|
|
||||||
for (var i = 0; i < links.length; i++) {
|
for (var i = 0; i < links.length; i++) {
|
||||||
const n = links[i]
|
const n = links[i]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user