FreshRoute

Configure URL rewrite rules and header modifications

Rules & Groups

Extension Settings

Environment Variables
๐Ÿ“‹ Environment Variables
Define reusable variables to avoid repetition. Use {{variableName}} in any input field to reference these variables.
๐Ÿ’ก Start typing {{ to see inline suggestions, or press Ctrl+Tab for manual suggestions.
๐Ÿ’ก Example: Create LOCAL_DOMAIN = localhost.freshservice-dev.com, then use {{LOCAL_DOMAIN}} in URL patterns.
FreshRoute Server Configuration
๐Ÿ“ก FreshRoute Server URLs
Configure the URLs for your local FreshRoute development server. The HTTP URL is used for API requests and file management, while the WebSocket URL is used for real-time communication.
๐Ÿ’ก Start the server: cd mock-server && npm start
URL for API requests and file management (default: http://localhost:3001)
URL for real-time communication (default: ws://localhost:3002)
๐Ÿ“ Response Files Directory
Files are stored in the mock-server/responses/ directory. Use the "Manage Files" button in the main rules section to upload and manage response files.
Disconnected
Extension Settings
Show Rule Notifications
Display toast notifications when rules are applied to web pages. Notifications auto-hide after 5 seconds and won't duplicate for the same rule.
Compact View for Notifications
Show only one notification at a time with navigation arrows (โ† โ†’) to move between them. The latest notification is shown by default. Requires notifications to be enabled.
Export Environment Variables with Rules
When enabled, environment variables will be included in exported JSON files. During import, environment variables will be created if they don't already exist with the same name.
Unified Rule Groups
โœ… Mixed Rule Types: Each group can contain URL rewrite, header modification, and mock response rules
๐Ÿ”ง Flexible Organization: Organize rules by project, environment, or purpose
๐Ÿ“‹ Easy Management: Add, edit, enable/disable rules within groups
Export & Import Rules
๐Ÿ“ค Export groups as JSON files for backup or sharing
๐Ÿ“ฅ Import rules from JSON files
๐Ÿ—‚๏ธ Groups can contain URL rewrite, header modification, and mock response rules