# Environment Files

Files holding settings that differ between development and production builds.

## What is **Environment Files**?

**Environment files** hold settings that differ between development and production, such as the API address. The build swaps in the right file.

```typescript
// environment.ts
export const environment = { apiUrl: 'http://localhost:5000' };

// environment.prod.ts
export const environment = { apiUrl: 'https://api.example.com' };
```

Level: Journeyman · [More Angular terms at this level](https://www.ask-codey.com/glossary?category=angular&level=3)

Updated: September 27, 2026

Source: https://www.ask-codey.com/glossary/environment-files
