API Reference
Error Monitoring
Getting Started
Welcome to Highlight
Integrations
Product Features
Session Replay
Tips
Menu
Environments
Environments can be assigned to sessions and errors by setting the environment option in H.init(). With the assignment, you can know search and filter sessions and errors based on the environment they come from.
Environments are also used to determine whether Alerts are created.
Example
H.init('<YOUR_PROJECT_ID>', { environment: process.env.ENVIRONMENT, })