From 0f1937340d868e0a0d68d044883535fc869b5cac Mon Sep 17 00:00:00 2001 From: Shinigami92 Date: Mon, 12 Dec 2022 16:15:26 +0100 Subject: [PATCH] use routeRules cache --- nuxt.config.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nuxt.config.ts b/nuxt.config.ts index b642abaa..c99adb81 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -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 + }, }, }, },