# Configuration
The development setup is configured using environment variables.
The variables are loaded and merged in the following order:
1. from environment
2. from optional .env file in project folder
3. from optional .env.[NODE_ENV] in project folder

## Variables

| Name                  | Default value                 | Description                                           |
| --------------------- | ----------------------------- | ----------------------------------------------------- |
| API_URL               | https://api-dev.theorchard.io | The base url to the API rest service.                 |
| CDN_URL               | https://cdn.theorchard.io     | The base url to the CDN for static assets.            |               |
| POEDITOR_PROJECT_ID   | undefined                     | Project ID for associated POEditor project.           |
| POEDITOR_API_TOKEN    | undefined                     | API token for accessing POEditor account.             |
| CLI_SERVER_PORT       | 8080                          | Port used when running dev server.                    |
| CLI_SERVER_HOST       | localhost                     | Host name used when running dev server.               |

### Example of `.env.shadow` file

```bash
API_URL=https://api-dev.theorchard.io
CDN_URL=https://qa-cdn.theorchard.io

CLI_SERVER_HOST=localhost
CLI_SERVER_PORT=8080

POEDITOR_PROJECT_ID=
POEDITOR_API_TOKEN=
```
