browser
browser configures the browsers used during addfox dev to open and load the extension: executable path, user-data (profile) directory, and whether to keep the profile between launches.
Overview
- Type:
Record<BrowserName, { path?: string; profile?: string; keepBrowserProfile?: boolean }> - Default:
undefined(uses system default paths) - Required: No
Each browser entry supports:
path— browser executable pathprofile— custom user-data (profile) directory; relative paths resolve from the project root (default:<outputRoot>/cache/browser-profile/<name>-user-data)keepBrowserProfile— keep this browser's profile between launches, overriding the top-levelkeepBrowserProfile
Chromium-based Browsers
The following Chromium-based browsers are supported:
Configuration Example
Launch via CLI
Firefox
Firefox uses the web-ext tool to manage extensions. The path configuration is the same:
Launch Firefox
Info
Firefox development mode uses the web-ext tool. Extension reload is handled by web-ext, not Addfox's WebSocket.
Platform Examples
macOS
Windows
Linux
Deprecated: browserPath
browserPath still works but prints a deprecation warning in the terminal. Migrate to browser:
If both browserPath and browser set a path for the same browser, browser takes precedence.
Related Configuration
- guide/launch - Browser launch guide
keepBrowserProfile/buildCache- Cache configuration

