# Environments (Pro plan)

> One page of the LogDuck documentation. Every page is listed in https://logduck.com/llms.txt, and https://logduck.com/llms-full.txt is all of them in one file.

Environments provide full data isolation within a project, similar to Stripe's test/live modes. Every project starts with a Production environment. Additional environments (Staging, Dev, etc.) can be created on the Pro plan.

## Data Isolation

Each environment has its own events, API keys, event types, categories, webhooks, and summaries. Data in one environment is completely separate from data in another. This means you can test your integration against a Staging environment without affecting Production data.

## Environment Prefix

Each environment has a unique 2-4 character prefix (e.g., `prod`, `stg`, `dev`). This prefix is used in API keys to scope requests to the correct environment. It also serves as the Firestore document ID for the environment.

## Dashboard Selector

The dashboard includes an environment selector that lets you switch between environments. The selected environment is persisted in the URL via a `?env=` query parameter, so you can bookmark or share links to a specific environment view.

> **Note: Production Environment**
> The Production environment is always present and cannot be deleted. It is created automatically when a project is set up.
