1
0

use routeRules cache

This commit is contained in:
Shinigami92 2022-12-12 16:15:26 +01:00
parent b90479d169
commit 0f1937340d

View File

@ -84,7 +84,10 @@ export default defineNuxtConfig({
},
routeRules: {
'/api/og-image': {
static: true,
// static: true, // Not working, gives 502: `Function is not an on-demand builder.`
cache: {
maxAge: 86400, // 1 day
},
},
},
},