Skip to main content

talawa-api / Exports / setup/getNodeEnvironment

Module: setup/getNodeEnvironment

Table of contents

Functions

Functions

getNodeEnvironment

getNodeEnvironment(): Promise<string>

Get the node environment The function getNodeEnvironment is an asynchronous function that prompts the user to select a Node environment (either "development" or "production") and returns the selected environment as a string.

Returns

Promise<string>

a Promise that resolves to a string representing the selected Node environment.

Defined in

src/setup/getNodeEnvironment.ts:9