From 5754c541393dab87f96e885d6a012fa59604a34c Mon Sep 17 00:00:00 2001 From: MiniDigger | Martin Date: Tue, 27 Dec 2022 23:11:55 +0100 Subject: [PATCH] fix(frontend): write backend data on error to fix lint error we don't want deployments to fail, that could be unrecoverable --- frontend/src/module/backendData.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/src/module/backendData.ts b/frontend/src/module/backendData.ts index 99881ad1..278cbfd6 100644 --- a/frontend/src/module/backendData.ts +++ b/frontend/src/module/backendData.ts @@ -85,6 +85,7 @@ export default defineNuxtModule({ } else { backendDataLog("Unknown error while generating backend data:", err); } + await fs.writeFile(moduleOptions.path, JSON.stringify({})); } }); },