From ba415d587d92e10c44849ea4125ed2263eef5569 Mon Sep 17 00:00:00 2001 From: nepeat Date: Sat, 27 Sep 2025 14:49:03 -0700 Subject: [PATCH] feat: add flatfile storage path environ --- src/backend/lib/config.ts | 1 + src/backend/lib/types.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/src/backend/lib/config.ts b/src/backend/lib/config.ts index 86240bb..434b7b1 100644 --- a/src/backend/lib/config.ts +++ b/src/backend/lib/config.ts @@ -21,6 +21,7 @@ export const config: Config = { storage: { type: envParseString('STORAGE_TYPE', 'file'), + path: envParseString('STORAGE_PATH', './data'), host: envParseString('STORAGE_HOST', '127.0.0.1'), port: envParseInteger('STORAGE_PORT', 6379), expire: envParseInteger('STORAGE_EXPIRE_SECONDS', null) ?? undefined, diff --git a/src/backend/lib/types.ts b/src/backend/lib/types.ts index eeffae5..6ddbcf6 100644 --- a/src/backend/lib/types.ts +++ b/src/backend/lib/types.ts @@ -94,6 +94,7 @@ declare module '@skyra/env-utilities' { RATE_LIMIT_TIME_WINDOW: IntegerString; STORAGE_TYPE: 'file' | 'redis'; STORAGE_HOST: string; + STORAGE_PATH: string; STORAGE_PORT: IntegerString; STORAGE_EXPIRE_SECONDS: IntegerString; STORAGE_DB: IntegerString;