mirror of
https://github.com/unraid/api.git
synced 2026-01-16 05:37:25 -06:00
21 lines
372 B
TypeScript
21 lines
372 B
TypeScript
/*!
|
|
* Copyright 2019-2020 Lime Technology Inc. All rights reserved.
|
|
* Written by: Alexis Tyler
|
|
*/
|
|
|
|
const _ = process.env;
|
|
|
|
/**
|
|
* Proxy for process.env
|
|
*
|
|
* @note Add known envs here for better typing
|
|
*/
|
|
export const envs = {
|
|
..._,
|
|
NODE_ENV: _.NODE_ENV!,
|
|
DEBUG: _.DEBUG === 'true',
|
|
PORT: _.PORT!,
|
|
NODE_API_PORT: _.NODE_API_PORT!,
|
|
DRY_RUN: Boolean(_.DRY_RUN)
|
|
};
|