fix(frontend): write backend data on error to fix lint error

we don't want deployments to fail, that could be unrecoverable
This commit is contained in:
MiniDigger | Martin 2022-12-27 23:11:55 +01:00
parent 36e5e07b38
commit 5754c54139

View File

@ -85,6 +85,7 @@ export default defineNuxtModule({
} else {
backendDataLog("Unknown error while generating backend data:", err);
}
await fs.writeFile(moduleOptions.path, JSON.stringify({}));
}
});
},