HomeGuidesAPI ReferenceGraphQL
Submit Documentation FeedbackJoin Developer CommunityOptimizely GitHubOptimizely NuGetLog In

Manage app deployment regions

You can deploy your Optimizely Connect Platform (OCP) app regionally to North America, Europe, and Asia Pacific.

You can deploy Optimizely Connect Platform (OCP) applications in multiple regions. Today, the platform is built in North America (us), Europe (eu), and Asia Pacific (au).

Manage app deployments in the app.yml file under availability.

Below is an example of the meta section from an app.yml file:

  app_id: klaviyo_collect
  display_name: Klaviyo Collect
  version: 0.1.0
  vendor: zaius
  summary: Collect Data From Klaviyo
  support_url: https://www.optimizely.com
  contact_email: [email protected]
    - Marketing
   - us

Below are some examples of how you can implement regional availability of your app:

##This deploys to the US only:
- us

##This deploys to the EU only:
- eu

##This deploys to both US and EU:
- us
- eu

##This deploys the app to all current available and future deployment regions:
- all

Environmental differences between regions in the .env file

Automatic deployment

If your app is tagged with -all, we automatically deploy your app to new regions as they become available.

Tagging your app with explicit deployment regions prevents this action and ensures your app is only deployed to the regions you have specified.

Specific region requirements

Your app may require specific configuration for different regions.

If you use the -all availability tag, you can only configure a single .env file for your app to be used in each region.

If you use the specific region tags, you can then specify a specific .env file for use with your apps in each region. For example, in a -us and -eu deployment model, you have a .env.us and a .env.eu file.

Common region-specific use cases

.env files commonly hold secret data for use by an app at startup, such as API keys for data exchange. It is common that different applications running in different regions require a different set of API keys by region.

Specifying your respective .env files for each given region is done by modifying the .env file extension in your apps to env.us or .env.eu. When we publish your app for the different regional availabilities, we ensure we get the right configuration from each one of the respective .env files.