From d22c9e24f4ca63c8757af0e0d9640f5d0431e815 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alejandro=20Gonz=C3=A1lez?= <7822554+AlexTMjugador@users.noreply.github.com> Date: Thu, 7 Aug 2025 00:05:33 +0200 Subject: [PATCH] tweak(frontend): improve Nuxt build state generation logging and caching (#4133) --- apps/frontend/nuxt.config.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/apps/frontend/nuxt.config.ts b/apps/frontend/nuxt.config.ts index 354bff294..9ca6846ef 100644 --- a/apps/frontend/nuxt.config.ts +++ b/apps/frontend/nuxt.config.ts @@ -143,8 +143,13 @@ export default defineNuxtConfig({ state.lastGenerated && new Date(state.lastGenerated).getTime() + TTL > new Date().getTime() && // ...but only if the API URL is the same - state.apiUrl === API_URL + state.apiUrl === API_URL && + // ...and if no errors were caught during the last generation + (state.errors ?? []).length === 0 ) { + console.log( + "Tags already recently generated. Delete apps/frontend/generated/state.json to force regeneration.", + ); return; }