chore: index update fast

pull/21/merge
xiaojunnuo 2023-07-03 10:29:06 +08:00
parent cce372aeba
commit b4e17691c4
2 changed files with 7 additions and 1 deletions

View File

@ -1,6 +1,7 @@
#!/bin/bash #!/bin/bash
set -e set -e
if $CERTD_VERSION; then # 判断$CERTD_VERSION 是否存在
if [ -n "$CERTD_VERSION" ]; then
echo "CERTD_VERSION is set = $CERTD_VERSION" echo "CERTD_VERSION is set = $CERTD_VERSION"
version=$CERTD_VERSION version=$CERTD_VERSION
else else

View File

@ -25,6 +25,11 @@ const development = {
alias: { alias: {
'/': '/index.html', '/': '/index.html',
}, },
files: {
'/index.html': {
maxAge: 60 * 60 * 1000,
},
},
}, },
}, },
}, },