Skip to content
Discussion options

You must be logged in to vote

https://wxt.dev/guide/development.html#configure-browser-startup

WXT uses web-ext to open the browser in dev mode. It only knows where Chrome and Firefox are located by default. When using a different browser, you have to tell web-ext where that browser's binary or executable is located, otherwise it will open chrome by default (since most browsers are chromium and will behave the exact same).

You can do this by using the runner config inside wxt.config.ts if you want to commit the config, or in a separate, gitignored web-ext.config.ts file if not.

// ~/web-ext.config.ts or <root>/web-ext.config.ts
import { defineRunnerConfig } from 'wxt';

export default defineRunnerConfig({
  binaries: {

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@aklinker1
Comment options

@chenbimo
Comment options

Answer selected by aklinker1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants