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: {
|
routeRules: {
|
||||||
'/api/og-image/**': {
|
'/api/og-image/**': {
|
||||||
static: true,
|
static: isCI,
|
||||||
cache: {
|
cache: !isCI
|
||||||
maxAge: 86400, // 1 day
|
? { maxAge: 86400 } // 1 day
|
||||||
},
|
: {},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue