First Setup
After installing Enveil, let’s perform basic configuration and create your first environment identification rule.
Open Configuration Page
- Click Extension Icon: Find the Enveil icon in Chrome toolbar
- Select Options: Click “Options” in the popup menu
- Configuration Page: Opens in a new tab with the full configuration interface
Interface Overview
The configuration page has two main sections:
Left Panel (Global Settings)
- Browser Sync: Cross-device configuration synchronization
- Default Colors: Preset environment color palette
- Import/Export: Configuration file management
Right Main Area (Configuration Management)
- Configs Tab: Traditional site environment configuration
- Cloud Tab: Cloud platform account and role configuration
Create Your First Environment Rule
Step 1: Add Configuration Group
- Click the “Add Group” button in the top-right
- Fill in group information:
- Group Name:
Development Environment - Default Environment Name:
DEV - Default Color: Select blue
#4a9eff - Enable Banner: ✓
- Enable Background: ✗ (development environments usually don’t need this)
- Group Name:
- Click “Save”
Step 2: Add Site Rule
- In the newly created group, click the “Add Site” button
- Configure site rule:
- Enable: ✓
- Match Pattern: Select
domain - Match Value: Enter
localhost - Environment Name:
DEV - Color: Blue
#4a9eff - Position: Select
rightTop(top-right corner) - Show Banner: ✓
- Show Background: ✗
- Click “Save”
Step 3: Test Configuration
- Open a new tab
- Visit
http://localhost:3000(or any localhost address) - You should see a blue “DEV” banner in the top-right corner
Add More Environments
Let’s add rules for testing and production environments:
Test Environment Configuration
- Add a new site in the same group:
- Match Pattern:
domain - Match Value:
test.yourcompany.com - Environment Name:
TEST - Color: Yellow
#ff9800 - Position:
rightTop - Show Banner: ✓
- Match Pattern:
Production Environment Configuration
- Create new group
Production Environment:- Default Environment Name:
PROD - Default Color: Red
#f44336 - Enable Background: ✓ (production environment warning)
- Default Environment Name:
- Add production site:
- Match Pattern:
domain - Match Value:
yourcompany.com - Environment Name:
PROD - Color: Red
#f44336 - Position:
rightTop - Show Banner: ✓
- Show Background: ✓
- Match Pattern:
Cloud Environment Configuration (Optional)
If you use cloud platforms (AWS, Azure, GCP), you can configure cloud environment identification:
Add AWS Environment
- Switch to “Cloud” tab
- Click “Add Env” button
- Configure cloud environment:
- Environment Name:
AWS Development Environment - Cloud Provider: Select
AWS ChinaorAWS Global - Enable: ✓
- Environment Name:
- Add cloud account:
- Account Name:
Development Account - Match Pattern:
urlPrefix - Match Value:
https://signin.amazonaws.cn/saml - Background Color: Blue
#4a9eff - Enable Background Highlighting: ✓
- Account Name:
Configuration Verification
After completing basic configuration, test these scenarios:
- Local Development: Visit
localhostshould show blue DEV banner - Test Environment: Visit test domain should show yellow TEST banner
- Production Environment: Visit production domain should show red PROD banner and background warning
- Cloud Platform: Visit AWS console should show account background highlighting
Advanced Configuration Options
Browser Sync
If you use Chrome on multiple devices:
- Enable “Browser Sync” toggle in the left panel
- Configuration will automatically sync to all Chrome browsers logged into the same Google account
Custom Colors
- In the left panel color area, click any color circle
- Use the color picker to customize colors
- Click the
+button to add new colors
Export Configuration
To backup your configuration:
- Click the “Export” button in the left panel
- Save the JSON configuration file to a safe location
Common Configuration Patterns
Development Team Standard Configuration
🔵 DEV (localhost, *.dev) - Blue banner
🟡 STAGING (*.staging.com) - Yellow banner
🟠 UAT (*.uat.com) - Orange banner
🔴 PROD (*.com, production domains) - Red banner + background warning
Multi-Project Configuration
Project A:
🔵 DEV (a-dev.com) - Blue
🔴 PROD (a.com) - Red
Project B:
🟢 DEV (b-dev.com) - Green
🟣 PROD (b.com) - Purple
Next Steps
After completing configuration, you can:
- Check User Guide for more advanced features
- Learn detailed usage of Cloud Environment Configuration
- Understand Advanced Matching Patterns like regular expressions
Configuration Complete! Now you can safely work across different environments without worrying about mixing them up.