Environments
Separate Flows deployments for different stages of your development lifecycle.
Overview
Environments allow you to manage workflows across the entire development lifecycle, from local development to production. Each environment operates independently with its own:
- Active workflow versions and statuses
- Workflow analytics
- Users
You can create an unlimited number of environments.
Create an Environment
To create a new environment:
- Navigate to Settings > Environment.
- Enter a unique key for the environment. This key is used to identify the environment in the SDK.
Edit an Environment
To modify an existing environment:
- Navigate to Settings > Environment.
- Update the environment key as needed.
Important: If you update the environment key, ensure the key is updated in your SDK setup to prevent service disruptions.
Using Environments
Each environment is associated with a unique key that links your application to the correct workflows. Include this key in your SDK setup:
layout.tsx
import { FlowsProvider } from "@flows/react";
const App = () => {
return (
<FlowsProvider
organizationId="your-organization-id" // Find this in Settings > General
environment="your-environment"
>
{/* Your app code here */}
</FlowsProvider>
);
};