Skip to content

Commit a8beb52

Browse files
add default maxSize to prevent error on default config start
1 parent 6d1e399 commit a8beb52

File tree

1 file changed

+4
-5
lines changed
  • packages/plugin-rest-cache/server/src/config

1 file changed

+4
-5
lines changed

packages/plugin-rest-cache/server/src/config/index.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ export default {
55
provider: {
66
name: 'memory',
77
getTimeout: 500,
8-
options: {},
8+
options: {
9+
maxSize: 32767,
10+
},
911
},
1012
strategy: {
1113
debug: false,
@@ -19,10 +21,7 @@ export default {
1921
useHeaders: [],
2022
useQueryParams: true,
2123
},
22-
hitpass: (ctx) =>
23-
Boolean(
24-
ctx.request.headers.authorization || ctx.request.headers.cookie
25-
),
24+
hitpass: (ctx) => Boolean(ctx.request.headers.authorization || ctx.request.headers.cookie),
2625
maxAge: 3600000,
2726
contentTypes: [],
2827
},

0 commit comments

Comments
 (0)