From 0549f74d69398d7bf8c113b37a7df0548d04d733 Mon Sep 17 00:00:00 2001 From: tobinio Date: Sat, 1 Nov 2025 15:46:54 +0100 Subject: [PATCH] move locale storage to .data --- .gitignore | 1 - server/plugins/storage.ts | 9 ++++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index ae3c1ec..68f19bd 100644 --- a/.gitignore +++ b/.gitignore @@ -6,7 +6,6 @@ data .nitro .cache dist -storage # Node dependencies node_modules diff --git a/server/plugins/storage.ts b/server/plugins/storage.ts index a0135bb..d0fc17e 100644 --- a/server/plugins/storage.ts +++ b/server/plugins/storage.ts @@ -1,3 +1,4 @@ +import consola from "consola"; import fsDriver from "unstorage/drivers/fs"; import upstashDriver from "unstorage/drivers/upstash"; @@ -36,6 +37,8 @@ function defnineProductionStorage() { base: "metadata", }), ); + + consola.info("Storage initialized"); } function defineDevelopmentStorage() { @@ -44,19 +47,19 @@ function defineDevelopmentStorage() { storage.mount( "globalStatistics", fsDriver({ - base: "storage/globalStatistics", + base: ".data/globalStatistics", }), ); storage.mount( "projectStatistics", fsDriver({ - base: "storage/projectStatistics", + base: ".data/projectStatistics", }), ); storage.mount( "metadata", fsDriver({ - base: "storage/metadata", + base: ".data/metadata", }), ); } -- 2.51.2