use routeRules cache
This commit is contained in:
parent
b90479d169
commit
0f1937340d
@ -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
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user