mirror of
https://github.com/elk-zone/elk.git
synced 2024-12-05 03:59:59 +03:00
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