Snapshot of uncommitted work: landing, bots, prod infra, partner cabinet, backoffice stage 1
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
45d7512d2b
commit
d452824c62
314 files changed
+44394
-121
No files matched your search
@@ -0,0 +1,13 @@
|
||||
import path from 'node:path';
|
||||
import { config } from 'dotenv';
|
||||
|
||||
/** Загружает корневой .env для процессов монорепо (боты, воркер) */
|
||||
export function loadRootEnv() {
|
||||
config({ path: path.resolve(import.meta.dirname, '../../../.env'), quiet: true });
|
||||
}
|
||||
|
||||
export function requireEnv(name: string): string {
|
||||
const v = process.env[name];
|
||||
if (!v) throw new Error(`${name} is not set`);
|
||||
return v;
|
||||
}
|
||||
Reference in new issue
Block a user