Merge branch 'main' into cal/dev-136

Signed-off-by: IMB11 <hendersoncal117@gmail.com>
This commit is contained in:
IMB11 2025-08-08 11:57:27 +01:00 committed by GitHub
commit 35b016c0bd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -144,8 +144,14 @@ export default defineNuxtConfig({
state.lastGenerated && state.lastGenerated &&
new Date(state.lastGenerated).getTime() + TTL > new Date().getTime() && new Date(state.lastGenerated).getTime() + TTL > new Date().getTime() &&
// ...but only if the API URL is the same // ...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 return
} }