---
"@context": https://schema.org
"@type": TechArticle
"@id": https://www.twilio.com/docs/segment/segment-app/set-up-envs#article
headline: Prod and Testing Environments in Segment
description: Set up separate development, testing, and production environments in Segment by creating a source for each environment within a single workspace.
url: https://www.twilio.com/docs/segment/segment-app/set-up-envs
inLanguage: en
dateModified: 2026-06-26T20:05:21.000Z
author:
  "@type": Organization
  name: Twilio Developer Education Team
publisher:
  "@type": Organization
  name: Twilio
---

# Prod and Testing Environments in Segment

Segment recommends that instead of setting up separate workspaces for different environments (local/development/prod), you set up one workspace and make each of these environments a *different source*.

Segment bills per workspace, and on our Team or Business plans you can create as many sources as you need. Each Segment source will have its own Write Key, so you can easily keep things separate.

For each source, you also get to choose which integrations you want it to send data to.
