chore: static cache

This commit is contained in:
xiaojunnuo
2023-07-03 09:15:52 +08:00
parent fa8e91cdcd
commit 832ba5c8fb
4 changed files with 9 additions and 13 deletions

View File

@@ -14,6 +14,10 @@ const development = {
port: 7001,
},
staticFile: {
usePrecompiledGzip: true,
buffer: true,
maxAge: 60 * 60 * 24 * 30 * 1000,
gzip: true,
dirs: {
default: {
prefix: '/',