refactor: only enable maxAge locally

This commit is contained in:
Daniel Roe 2022-12-12 20:54:32 +00:00
parent e88d255c07
commit 797b99f122
No known key found for this signature in database
GPG key ID: 22D5008E4F5D9B55

View file

@ -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
}, : {},
}, },
}, },
}, },