forked from Mirrors/elk
use routeRules cache
This commit is contained in:
parent
b90479d169
commit
0f1937340d
1 changed files with 4 additions and 1 deletions
|
@ -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 a new issue