Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/wayou/nestjs-load-config-based-on-env

nestjs load script configuration based on node env
https://github.com/wayou/nestjs-load-config-based-on-env

configuration nestjs

Last synced: 26 days ago
JSON representation

nestjs load script configuration based on node env

Awesome Lists containing this project

README

        

# nestjs-load-config-based-on-env

load ts cofnig based on `NODE_ENV`

## Installing

```sh
$ yarn
```

## Running

### Starting the server with `dev` mode

```sh
$ yarn start:dev
server started at http://localhost:3000
```

test it:

```sh
$ curl http://localhost:3000
CONFIG_DEV
```

### Starting the server with `prod` mode

```sh
$ yarn start:prod
server started at http://localhost:3000
```

test it:

```sh
$ curl http://localhost:3000
CONFIG_PROD
```