chore: re-order backend file structure

This commit is contained in:
Nicolas Meienberger
2025-08-31 17:32:11 +02:00
parent a16fc37b44
commit 23f47bbb6b
28 changed files with 240 additions and 1129 deletions

View File

@@ -5,11 +5,13 @@ const envSchema = type({
NODE_ENV: type
.enumerated("development", "production", "test")
.default("development"),
DB_FILE_NAME: "string",
VOLUME_ROOT: "string",
}).pipe((s) => ({
__prod__: s.NODE_ENV === "production",
environment: s.NODE_ENV,
dbFileName: s.DB_FILE_NAME,
dbFileName: "/data/ironmount.db",
volumeRootHost: s.VOLUME_ROOT,
volumeRootContainer: "/mnt/volumes",
}));
const parseConfig = (env: unknown) => {