To start the extension development server, run:
pnpm exec watchapp develop
If you want to be able to develop the extension on Safari and Firefox, you will need to run the develop command with a proxy. I use Cloudflare Tunnels for my proxy, with the proxy domain set to https://watch-survivor.dev-proxy.me.
To use the proxy, follow the steps to run the Cloudflare Tunnel, which should end with you running:
# `cloudflared` command not found? Run `brew install cloudflared`
# @see https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/install-and-setup/installation/
cloudflared tunnel run
Then, run the development server, but with the --proxy
argument set to the root proxy URL:
pnpm exec watchapp --proxy https://watch-survivor.dev-proxy.me
To run the extension against a locally-running version of the Watch application, run the pnpm develop
command with the WATCH_ROOT_URL
environment variable:
WATCH_ROOT_URL=https://watch.lemon.dev pnpm exec watchapp develop --proxy https://watch-survivor.dev-proxy.me