forked from Mirrors/elk
refactor: only enable maxAge locally
This commit is contained in:
parent
e88d255c07
commit
797b99f122
1 changed files with 4 additions and 4 deletions
|
@ -85,10 +85,10 @@ export default defineNuxtConfig({
|
|||
},
|
||||
routeRules: {
|
||||
'/api/og-image/**': {
|
||||
static: true,
|
||||
cache: {
|
||||
maxAge: 86400, // 1 day
|
||||
},
|
||||
static: isCI,
|
||||
cache: !isCI
|
||||
? { maxAge: 86400 } // 1 day
|
||||
: {},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue