mirror of
https://github.com/Routstr/routstrd.git
synced 2026-10-05 20:38:22 +00:00
feat(wallet): support COCOD_DIR env var for config dir
Allow overriding the default cocod config directory (~/.cocod) via the COCOD_DIR environment variable. Falls back to existing HOME/USERPROFILE logic when unset. Bump version to 0.2.6.
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "routstrd",
|
||||
"version": "0.2.3",
|
||||
"version": "0.2.6",
|
||||
"module": "src/index.ts",
|
||||
"type": "module",
|
||||
"private": false,
|
||||
|
||||
@@ -2,7 +2,8 @@ import { existsSync } from "fs";
|
||||
import { createHash } from "crypto";
|
||||
import { logger } from "../../utils/logger";
|
||||
|
||||
const DEFAULT_CONFIG_DIR = `${process.env.HOME || process.env.USERPROFILE || ""}/.cocod`;
|
||||
const DEFAULT_CONFIG_DIR =
|
||||
process.env.COCOD_DIR || `${process.env.HOME || process.env.USERPROFILE || ""}/.cocod`;
|
||||
const DEFAULT_SOCKET_PATH =
|
||||
process.env.COCOD_SOCKET || `${DEFAULT_CONFIG_DIR}/cocod.sock`;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user