application-services
Version:
Out of the box application environment and configuration service.
19 lines (18 loc) • 564 B
JavaScript
import { env } from 'node:process';
import { service, location } from 'knifecycle';
/* Architecture Note #1.1: `PROCESS_ENV`
A simple service to enclose the NodeJS `process.env`
global variable. It is provided as a service to avoid
the process environment to be saved into builds.
*/
/**
* @constant
* @type Object
* @name PROCESS_ENV
* Provides the PROCESS_ENV service
*/
async function initProcessEnv() {
return env;
}
export default location(service(initProcessEnv, 'PROCESS_ENV', [], true), import.meta.url);
//# sourceMappingURL=PROCESS_ENV.js.map