Concepts
Environments
Every app has a development and a production environment, each with its own keys, published guides and kill switch.
| Development | Production | |
|---|---|---|
| Use it for | Local builds, staging, testing new guides | Your real users |
| Keys | ps_pub_dev_…, ps_sec_dev_… | ps_pub_prod_…, ps_sec_prod_… |
| Usage | Counted, never billed, up to 100 guided users and 1 GB of hosted video a month | Counted and billed |
You publish a guide to one environment at a time, so a guide can be at version 3 in development and version 2 in production.
The development limit
Development is free so you can test as much as you like, but it is not for live users. Each month, once development environments in a workspace have guided 100 people or served 1 GB of hosted video, development guides stop starting for new people until the next month; people already in a guide finish it, and your app keeps working. Settings › Usage & billing shows development usage under its own heading. If your app is live, install the production key.
Keys
- Publishable keys (
ps_pub_…) go in your app. They can only read published guides and send guide events. - Secret keys (
ps_sec_…) are for your servers and CI, to publish guides with the server API. They are shown once; rotate them in Settings › API keys.
Kill switch
Guides › Environments › Turn off guides stops every guide in that environment within a minute, without a release. Your app keeps working; guides simply stop starting.
Switching in the dashboard
The context switcher at the top of the sub-navigation picks the app and the environment. Lists, analytics and anchors show the selected environment.